1 | <?php |
||
10 | class CouldNotCreateMessage extends Exception |
||
11 | { |
||
12 | /** |
||
13 | * Thrown when the message text is not provided. |
||
14 | * |
||
15 | * @return static |
||
16 | */ |
||
17 | public static function textTooLong(): CouldNotCreateMessage |
||
21 | |||
22 | /** |
||
23 | * Thrown when invalid notification type provided. |
||
24 | * |
||
25 | * @return static |
||
26 | */ |
||
27 | public static function invalidNotificationType(): CouldNotCreateMessage |
||
31 | |||
32 | /** |
||
33 | * Thrown when invalid attachment type provided. |
||
34 | * |
||
35 | * @return static |
||
36 | */ |
||
37 | public static function invalidAttachmentType(): CouldNotCreateMessage |
||
41 | |||
42 | /** |
||
43 | * Thrown when a URl should be provided for an attachment. |
||
44 | * |
||
45 | * @return static |
||
46 | */ |
||
47 | public static function urlNotProvided(): CouldNotCreateMessage |
||
51 | |||
52 | /** |
||
53 | * Thrown when enough data is not provided. |
||
54 | * |
||
55 | * @return static |
||
56 | */ |
||
57 | public static function dataNotProvided(): CouldNotCreateMessage |
||
61 | |||
62 | /** |
||
63 | * Thrown when number of buttons in message exceeds. |
||
64 | * |
||
65 | * @return static |
||
66 | */ |
||
67 | public static function messageButtonsLimitExceeded(): CouldNotCreateMessage |
||
71 | |||
72 | /** |
||
73 | * Thrown when number of cards in message exceeds. |
||
74 | * |
||
75 | * @return static |
||
76 | */ |
||
77 | public static function messageCardsLimitExceeded(): CouldNotCreateMessage |
||
81 | |||
82 | /** |
||
83 | * Thrown when there is no user id or phone number provided. |
||
84 | * |
||
85 | * @return static |
||
86 | */ |
||
87 | public static function recipientNotProvided(): CouldNotCreateMessage |
||
91 | } |
||
92 |