| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class HttpException extends \Exception |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @return HttpException |
||
| 25 | * @throws LangException |
||
| 26 | */ |
||
| 27 | public static function unexpectedRequestInitialization(): HttpException |
||
| 28 | { |
||
| 29 | return new static(t('exception.unexpected_request_initialization'), E_WARNING); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return HttpException |
||
| 34 | * @throws LangException |
||
| 35 | */ |
||
| 36 | public static function unexpectedResponseInitialization(): HttpException |
||
| 37 | { |
||
| 38 | return new static(t('exception.unexpected_response_initialization'), E_WARNING); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return HttpException |
||
| 43 | * @throws LangException |
||
| 44 | */ |
||
| 45 | public static function requestNotCreated(): HttpException |
||
| 46 | { |
||
| 47 | return new static(t('exception.request_not_created'), E_WARNING); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $name |
||
| 52 | * @return HttpException |
||
| 53 | * @throws LangException |
||
| 54 | */ |
||
| 55 | public static function methodNotAvailable(string $name): HttpException |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return static |
||
| 62 | * @throws LangException |
||
| 63 | */ |
||
| 64 | public static function contentTypeNotSupported(): HttpException |
||
| 67 | } |
||
| 68 | |||
| 69 | } |
||
| 70 |