| 1 | <?php |
||
| 7 | class ZonerSmsGatewayException extends \Exception |
||
| 8 | { |
||
| 9 | 1 | public static function serviceRespondedWithAnError($code) |
|
| 10 | { |
||
| 11 | 1 | return new static("Zoner SMS-Gateway returned error code $code", $code); |
|
| 12 | } |
||
| 13 | |||
| 14 | public static function unexpectedHttpStatus(ResponseInterface $response) |
||
| 18 | |||
| 19 | public static function usernameNotProvided() |
||
| 23 | |||
| 24 | public static function receiverNotProvided() |
||
| 28 | |||
| 29 | public static function senderNotProvided() |
||
| 33 | |||
| 34 | public static function emptyMessage() |
||
| 38 | |||
| 39 | public static function unknownZonerResponse($response) |
||
| 43 | } |
||
| 44 |