1 | <?php |
||
5 | class CouldNotCreateMessage extends \Exception |
||
6 | { |
||
7 | /** |
||
8 | * Thrown when the message text is not provided. |
||
9 | * |
||
10 | * @return static |
||
11 | */ |
||
12 | public static function textTooLong() |
||
16 | |||
17 | /** |
||
18 | * Thrown when invalid notification type provided. |
||
19 | * |
||
20 | * @return static |
||
21 | */ |
||
22 | public static function invalidNotificationType() |
||
26 | |||
27 | /** |
||
28 | * Thrown when invalid attachment type provided. |
||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | public static function invalidAttachmentType() |
||
36 | |||
37 | /** |
||
38 | * Thrown when a URl should be provided for an attachment. |
||
39 | * |
||
40 | * @return static |
||
41 | */ |
||
42 | public static function urlNotProvided() |
||
46 | |||
47 | /** |
||
48 | * Thrown when a attachment type is not provided. |
||
49 | * |
||
50 | * @return static |
||
51 | */ |
||
52 | public static function attachmentTypeNotProvided() |
||
56 | |||
57 | /** |
||
58 | * Thrown when the button type is "postback" or "phone_number", |
||
59 | * but the data value is not provided for the payload. |
||
60 | * |
||
61 | * @return static |
||
62 | */ |
||
63 | public static function dataNotProvided() |
||
67 | |||
68 | /** |
||
69 | * Thrown when the title characters limit is exceeded. |
||
70 | * |
||
71 | * @return static |
||
72 | */ |
||
73 | public static function titleLimitExceeded($title) |
||
81 | |||
82 | /** |
||
83 | * Thrown when the payload characters limit is exceeded. |
||
84 | * |
||
85 | * @param mixed $data |
||
86 | * |
||
87 | * @return static |
||
88 | */ |
||
89 | public static function payloadLimitExceeded($data) |
||
97 | |||
98 | /** |
||
99 | * Thrown when number of buttons in message exceeds. |
||
100 | * |
||
101 | * @return static |
||
102 | */ |
||
103 | public static function messageButtonsLimitExceeded() |
||
107 | |||
108 | /** |
||
109 | * Thrown when number of cards in message exceeds. |
||
110 | * |
||
111 | * @return static |
||
112 | */ |
||
113 | public static function messageCardsLimitExceeded() |
||
117 | |||
118 | /** |
||
119 | * Thrown when there is no user id or phone number provided. |
||
120 | * |
||
121 | * @return static |
||
122 | */ |
||
123 | public static function recipientNotProvided() |
||
127 | } |
||
128 |