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(): self |
||
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): self |
||
37 | |||
38 | /** |
||
39 | * Thrown when we're unable to communicate with smsc.ru. |
||
40 | * |
||
41 | * @param Exception $exception |
||
42 | * |
||
43 | * @return static |
||
44 | */ |
||
45 | public static function couldNotCommunicateWithSmsc(Exception $exception): self |
||
53 | } |
||
54 |