1 | <?php |
||
30 | class HttpException extends UserException |
||
31 | { |
||
32 | /** |
||
33 | * @var int HTTP status code, such as 403, 404, 500, etc. |
||
34 | */ |
||
35 | public $statusCode; |
||
36 | |||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | * @param int $status HTTP status code, such as 404, 500, etc. |
||
41 | * @param string $message error message |
||
42 | * @param int $code error code |
||
43 | * @param \Exception $previous The previous exception used for the exception chaining. |
||
44 | */ |
||
45 | 20 | public function __construct($status, $message = null, $code = 0, \Exception $previous = null) |
|
50 | |||
51 | /** |
||
52 | * @return string the user-friendly name of this exception |
||
53 | */ |
||
54 | 3 | public function getName() |
|
62 | } |
||
63 |