| 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 hooksRespondedWithAnError(ClientException $exception) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Thrown when there's no api key provided. |
||
| 27 | * |
||
| 28 | * @param string $message |
||
| 29 | * |
||
| 30 | * @return static |
||
| 31 | */ |
||
| 32 | public static function hooksApiKeyNotProvided($message) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Thrown when we're unable to communicate with Hooks API. |
||
| 39 | * |
||
| 40 | * @param \Exception $exception |
||
| 41 | * |
||
| 42 | * @return static |
||
| 43 | */ |
||
| 44 | public static function couldNotCommunicateWithHooks(Exception $exception) |
||
| 48 | |||
| 49 | public static function alertIdNotProvided() |
||
| 53 | } |
||
| 54 |