| 1 | <?php |
||
| 8 | class CouldNotSendNotification extends \Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Thrown when there's a bad request and an error is responded. |
||
| 12 | * |
||
| 13 | * @param ClientException $exception |
||
| 14 | * |
||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | public static function facebookRespondedWithAnError(ClientException $exception) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Thrown when there's no page token provided. |
||
| 26 | * |
||
| 27 | * @param string $message |
||
| 28 | * |
||
| 29 | * @return static |
||
| 30 | */ |
||
| 31 | public static function facebookPageTokenNotProvided($message) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Thrown when we're unable to communicate with Telegram. |
||
| 38 | * |
||
| 39 | * @param \Exception $exception |
||
| 40 | * |
||
| 41 | * @return static |
||
| 42 | */ |
||
| 43 | public static function couldNotCommunicateWithFacebook(Exception $exception) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Thrown when number of buttons in message exceeds. |
||
| 50 | * |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | public static function messageButtonsLimitExceeded() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Thrown when there is no user id or phone number provided. |
||
| 60 | * |
||
| 61 | * @return static |
||
| 62 | */ |
||
| 63 | public static function recipientNotProvided() |
||
| 67 | } |
||
| 68 |