芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/lib/Exception/NotFoundException.php
. */ 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]; } }