Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class MissingAllowedTypeException extends BaseException |
||
16 | { |
||
17 | /** |
||
18 | * Throw a 404 when allowed type is missing. |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $_defaultCode = 404; |
||
22 | |||
23 | /** |
||
24 | * Constructor. |
||
25 | * |
||
26 | * Allows you to create exceptions that are treated as framework errors and disabled |
||
27 | * when debug mode is off. |
||
28 | * |
||
29 | * @param string|array $message Either the string of the error message, or an array of attributes |
||
30 | * that are made available in the view, and sprintf()'d into Exception::$_messageTemplate |
||
31 | * @param int|null $code The code of the error, is also the HTTP status code for the error. |
||
32 | * @param \Exception|null $previous the previous exception. |
||
33 | */ |
||
34 | 2 | public function __construct($message = '', $code = null, $previous = null) |
|
45 |