| 1 | <?php |
||
| 7 | class CouldNotSendNotification extends \Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Thrown when there's a bad request and an error is responded. |
||
| 11 | * |
||
| 12 | * @param ClientException $exception |
||
| 13 | * |
||
| 14 | * @return static |
||
| 15 | */ |
||
| 16 | public static function workplaceRespondedWithAnError(ClientException $exception) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Thrown when there is workplace endpoint defined. |
||
| 29 | * |
||
| 30 | * @return static |
||
| 31 | */ |
||
| 32 | 1 | public static function endpointNotProvided() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Thrown when we're unable to communicate with Workplace. |
||
| 39 | * |
||
| 40 | * @return static |
||
| 41 | */ |
||
| 42 | public static function couldNotCommunicateWithWorkplace($message) |
||
| 46 | } |
||
| 47 |