return new static("Microsoft Teams responded with an error `{$statusCode} - {$description}`");
26
}
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)
36
{
37
return new static("The communication with Microsoft Teams failed. `{$exception->getMessage()}`");
38
}
39
40
/**
41
* Thrown when there is no webhook url provided.
42
*
43
* @return static
44
*/
45
2
public static function microsoftTeamsWebhookUrlMissing()
46
{
47
2
return new static('Microsoft Teams webhook url is missing. Please add it as param over the MicrosoftTeamsMessage::to($url) method or return it in the notifiable model by providing the method Model::routeNotificationForMicrosoftTeams().');