芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/yiisoft/yii2/web/HttpException.php
* @since 2.0 */ class HttpException extends UserException { /** * @var int HTTP status code, such as 403, 404, 500, etc. */ public $statusCode; /** * Constructor. * @param int $status HTTP status code, such as 404, 500, etc. * @param string|null $message error message * @param int $code error code * @param \Throwable|null $previous The previous exception used for the exception chaining. */ public function __construct($status, $message = null, $code = 0, $previous = null) { $this->statusCode = $status; parent::__construct((string)$message, $code, $previous); } /** * @return string the user-friendly name of this exception */ public function getName() { if (isset(Response::$httpStatuses[$this->statusCode])) { return Response::$httpStatuses[$this->statusCode]; } return 'Error'; } }