| 1 | <?php |
||
| 8 | class CouldNotSendNotification extends Exception |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Thrown when room identifier is missing. |
||
| 12 | * |
||
| 13 | * @return static |
||
| 14 | */ |
||
| 15 | 1 | public static function missingRoom() |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Thrown when user or app access token is missing. |
||
| 22 | * |
||
| 23 | * @return static |
||
| 24 | */ |
||
| 25 | 1 | public static function missingFrom() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Thrown when there's a bad response from the Gitter. |
||
| 32 | * |
||
| 33 | * @param ClientException $exception |
||
| 34 | * |
||
| 35 | * @return static |
||
| 36 | */ |
||
| 37 | public static function gitterRespondedWithAnError(ClientException $exception) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Thrown when we're unable to communicate with Gitter. |
||
| 47 | * |
||
| 48 | * @param Exception $exception |
||
| 49 | * |
||
| 50 | * @return static |
||
| 51 | */ |
||
| 52 | public static function couldNotCommunicateWithGitter(Exception $exception) |
||
| 56 | } |
||
| 57 |