| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SystemException extends \RuntimeException |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string エラーメッセージ |
||
| 15 | */ |
||
| 16 | private $errorMessage; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * constructor |
||
| 20 | * @param string $message エラーメッセージ |
||
| 21 | * @param int $code ステータスコード |
||
| 22 | * @param \Exception $exception 例外オブジェクト |
||
| 23 | */ |
||
| 24 | 2 | public function __construct(string $message, int $code = 500, \Exception $exception = null) |
|
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * エラーメッセージを返却する |
||
| 49 | * @return string エラーメッセージ |
||
| 50 | */ |
||
| 51 | 5 | public function getExceptionAsString(): string |
|
| 56 |