1 | <?php |
||
9 | class CouldNotSendNotification extends Exception |
||
10 | { |
||
11 | /** |
||
12 | * @param \Psr\Http\Message\ResponseInterface $response |
||
13 | * |
||
14 | * @return static |
||
15 | */ |
||
16 | public static function serviceRespondedWithAnHttpError(ResponseInterface $response) |
||
26 | |||
27 | /** |
||
28 | * @param array $response |
||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | public static function serviceRespondedWithAnApiError(array $response) |
||
36 | |||
37 | /** |
||
38 | * @param \Exception $exception |
||
39 | * |
||
40 | * @return static |
||
41 | */ |
||
42 | public static function serviceCommunicationError(Exception $exception) |
||
46 | } |
||
47 |