| 1 | <?php |
||
| 8 | class CouldNotSendNotification extends Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Thrown when content length is greater than 800 characters. |
||
| 12 | * |
||
| 13 | * @return static |
||
| 14 | */ |
||
| 15 | public static function contentLengthLimitExceeded() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Thrown when we're unable to communicate with smsc.ru. |
||
| 24 | * |
||
| 25 | * @param DomainException $exception |
||
| 26 | * |
||
| 27 | * @return static |
||
| 28 | */ |
||
| 29 | public static function smscRespondedWithAnError(DomainException $exception) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Thrown when we're unable to communicate with smsc.ru. |
||
| 38 | * |
||
| 39 | * @param Exception $exception |
||
| 40 | * |
||
| 41 | * @return static |
||
| 42 | */ |
||
| 43 | public static function couldNotCommunicateWithSmsc(Exception $exception) |
||
| 47 | } |
||
| 48 |