Client/ClientException.php
<?php
/**
* This file is part of the Superdesk Web Publisher Updater Bundle.
*
* Copyright 2015 Sourcefabric z.u. and contributors.
*
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code.
*
* @copyright 2015 Sourcefabric z.รบ.
* @license http://www.superdesk.org/license
*/
namespace SWP\UpdaterBundle\Client;
use Exception;
class ClientException extends Exception
{
protected $errors;
public function __construct($message, $errors = array(), Exception $previous = null)
{
parent::__construct($message, 0, $previous);
$this->errors = $errors;
}
public function getErrors()
{
return $this->errors;
}
}