芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/views/Exception.tar
NotFoundException.php 0000644 00000002715 14716415522 0010704 0 ustar 00 . */ namespace Xibo\Exception; /** * Class NotFoundException * @package Xibo\Exception */ class NotFoundException extends XiboException { public $httpStatusCode = 404; public $handledException = true; public $entity = null; /** * NotFoundException constructor. * @param string $message * @param string $entity */ public function __construct($message = null, $entity = null) { $this->entity = $entity; if ($message === null) $message = __('Not Found'); parent::__construct($message); } /** * @return array */ public function getErrorData() { return ['entity' => $this->entity]; } } XiboException.php 0000644 00000000713 14716415522 0010045 0 ustar 00 handledException; } } ConfigurationException.php 0000644 00000000614 14716415522 0011753 0 ustar 00 . */ namespace Xibo\Exception; class ControllerNotImplemented extends XiboException { } UpgradePendingException.php 0000644 00000001132 14716415522 0012034 0 ustar 00 . */ namespace Xibo\Exception; class AccessDeniedException extends \RuntimeException { /** * Public Constructor * * @param string $message * @param int $code * @param \Exception $previous */ public function __construct($message = 'Access Denied', $code = 403, \Exception $previous = null) { $message = __($message); parent::__construct($message, $code, $previous); } } DuplicateEntityException.php 0000644 00000000666 14716415522 0012262 0 ustar 00 property = $property; parent::__construct($message); } /** * @return array */ public function getErrorData() { return ['property' => $this->property]; } } TokenExpiredException.php 0000644 00000000333 14716415522 0011543 0 ustar 00 . */ namespace Xibo\Exception; /** * Class GeneralException * @package Xibo\Exception */ class GeneralException extends XiboException { public $httpStatusCode = 400; public $handledException = true; public $entity = null; /** * GeneralException constructor. * @param string $message * @param string $entity */ public function __construct($message = null, $entity = null) { $this->entity = $entity; if ($message === null) $message = __('Error'); parent::__construct($message); } /** * @return array */ public function getErrorData() { return ['entity' => $this->entity]; } } FormExpiredException.php 0000644 00000001552 14716415522 0011372 0 ustar 00 . */ namespace Xibo\Exception; class FormExpiredException extends \Exception { } LibraryFullException.php 0000644 00000000331 14716415522 0011367 0 ustar 00 . */ namespace Xibo\Exception; /** * Class ValueTooLargeException * @package Xibo\Exception */ class ValueTooLargeException extends InvalidArgumentException { }