| 1 | <?php |
||
| 20 | class ApiException extends Exception |
||
| 21 | { |
||
| 22 | const STATUS_CODE = null; |
||
| 23 | const STATUS_NAME = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ApiException constructor. |
||
| 27 | * |
||
| 28 | * @param Exception $e |
||
| 29 | */ |
||
| 30 | 39 | public function __construct(\Exception $e) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | * @throws \UnderflowException |
||
| 38 | */ |
||
| 39 | 29 | public static function getExceptionIdentifier() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param int $errorStatusCode |
||
| 46 | * @param string $errorStatusName |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 29 | public static function calculateExceptionIdentifier($errorStatusCode, $errorStatusName) |
|
| 54 | } |
||
| 55 |