| 1 | <?php |
||
| 8 | class CouldNotSendNotification extends Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Thrown when recipient's phone number is missing. |
||
| 12 | * |
||
| 13 | * @return static |
||
| 14 | */ |
||
| 15 | 1 | public static function missingRecipient() |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Thrown when content length is greater than 800 characters. |
||
| 22 | * |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | public static function contentLengthLimitExceeded() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Thrown when we're unable to communicate with smsc.ru. |
||
| 34 | * |
||
| 35 | * @param DomainException $exception |
||
| 36 | * |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | public static function smscRespondedWithAnError(DomainException $exception) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Thrown when we're unable to communicate with smsc.ru. |
||
| 48 | * |
||
| 49 | * @param Exception $exception |
||
| 50 | * |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | public static function couldNotCommunicateWithSmsc(Exception $exception) |
||
| 57 | } |
||
| 58 |