1 | <?php |
||
11 | class CouldNotSendNotification extends Exception |
||
12 | { |
||
13 | /** |
||
14 | * Thrown when there's a bad request and an error is responded. |
||
15 | * |
||
16 | * @param ClientException $exception |
||
17 | * |
||
18 | * @return static |
||
19 | */ |
||
20 | public static function facebookRespondedWithAnError(ClientException $exception): self |
||
30 | |||
31 | /** |
||
32 | * Thrown when there's no page token provided. |
||
33 | * |
||
34 | * @param string $message |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public static function facebookPageTokenNotProvided(string $message): self |
||
42 | |||
43 | /** |
||
44 | * Thrown when we're unable to communicate with Telegram. |
||
45 | * |
||
46 | * @param Exception $exception |
||
47 | * |
||
48 | * @return static |
||
49 | */ |
||
50 | public static function couldNotCommunicateWithFacebook(Exception $exception): self |
||
54 | } |
||
55 |