1 | <?php |
||
9 | class CouldNotSendNotification extends Exception |
||
10 | { |
||
11 | /** |
||
12 | * Thrown when there's a bad request from the HttpClient. |
||
13 | * |
||
14 | * @param \GuzzleHttp\Exception\ClientException $exception |
||
15 | * @return static |
||
16 | */ |
||
17 | public static function hipChatRespondedWithAnError(ClientException $exception) |
||
25 | |||
26 | /** |
||
27 | * Thrown when to (room identifier) is missing. |
||
28 | * |
||
29 | * @return static |
||
30 | */ |
||
31 | 1 | public static function missingTo() |
|
35 | |||
36 | /** |
||
37 | * Thrown when an invalid message object was passed. |
||
38 | * |
||
39 | * @param mixed $message |
||
40 | * @return static |
||
41 | */ |
||
42 | 1 | public static function invalidMessageObject($message) |
|
50 | |||
51 | /** |
||
52 | * Thrown when any other exception is caught while sending a notification message. |
||
53 | * |
||
54 | * @return static |
||
55 | */ |
||
56 | public static function internalError($exception = null) |
||
60 | } |
||
61 |