| 1 | <?php |
||
| 5 | class CouldNotSendNotification extends \Exception |
||
| 6 | { |
||
| 7 | public static function serviceRespondedWithAnError($code) |
||
| 8 | { |
||
| 9 | return new static("Zoner SMS-Gateway returned error code $code", $code); |
||
| 10 | } |
||
| 11 | |||
| 12 | public static function unexpectedHttpStatus($response) |
||
| 16 | |||
| 17 | public static function usernameNotProvided() |
||
| 21 | |||
| 22 | 2 | public static function receiverNotProvided() |
|
| 23 | { |
||
| 24 | 2 | return new static('Receiver number not defined.'); |
|
| 25 | } |
||
| 26 | |||
| 27 | public static function senderNotProvided() |
||
| 31 | |||
| 32 | public static function emptyMessage() |
||
| 36 | } |
||
| 37 |