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