| 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 msTeamsRespondedWithAnError(ClientException $exception) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Thrown when we're unable to communicate with Ms Teams. |
||
| 26 | * |
||
| 27 | * @return static |
||
| 28 | */ |
||
| 29 | public static function couldNotCommunicateWithMsTeams($message) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Thrown when there is no chat id provided. |
||
| 36 | * |
||
| 37 | * @return static |
||
| 38 | */ |
||
| 39 | 1 | public static function connectorWebHookUrlMissing() |
|
| 43 | } |
||
| 44 |