| 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 microsoftTeamsRespondedWithAnError(ClientException $exception) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Thrown when we're unable to communicate with Microsoft Teams. |
||
| 30 | * |
||
| 31 | * @param \Exception $exception |
||
| 32 | * |
||
| 33 | * @return static |
||
| 34 | */ |
||
| 35 | public static function couldNotCommunicateWithMicrosoftTeams(\Exception $exception) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Thrown when there is no webhook url provided. |
||
| 42 | * |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | 2 | public static function microsoftTeamsWebhookUrlMissing() |
|
| 49 | } |
||
| 50 |