forked from laravel-notification-channels/webex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCouldNotCreateNotification.php
33 lines (26 loc) · 1.05 KB
/
CouldNotCreateNotification.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace NotificationChannels\Webex\Exceptions;
use Exception;
class CouldNotCreateNotification extends Exception
{
public static function invalidParentId(string $id): CouldNotCreateNotification
{
return new self("The id `$id` is not a valid message resource identifier.");
}
public static function failedToDetermineRecipient(): CouldNotCreateNotification
{
return new self('Failed to determine the message recipient.');
}
public static function messageWithFileAndAttachmentNotSupported(): CouldNotCreateNotification
{
return new self('Sending local file(s) and attachment(s) in the same message is not supported');
}
public static function multipleFilesNotSupported(): CouldNotCreateNotification
{
return new self('Sending multiple files in the same message is not supported');
}
public static function multipleAttachmentsNotSupported(): CouldNotCreateNotification
{
return new self('Sending multiple attachments in the same message is not supported');
}
}