1 | <?php |
||
7 | class CouldNotSendNotification extends \Exception |
||
8 | { |
||
9 | /** |
||
10 | * Generic method to show the exception. |
||
11 | * |
||
12 | * @return static |
||
13 | */ |
||
14 | public static function serviceRespondedWithAnError() |
||
18 | |||
19 | /** |
||
20 | * Thrown when there's a bad request and an error is responded. |
||
21 | * |
||
22 | * @param ClientException $exception |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | public static function flockRespondedWithAnError(ClientException $exception) |
||
36 | |||
37 | /** |
||
38 | * Thrown when there is no Incoming webhook url provided. |
||
39 | * |
||
40 | * @return static |
||
41 | */ |
||
42 | 1 | public static function flockRouteNotProvided() |
|
46 | |||
47 | /** |
||
48 | * Thrown when attachment views widget source, height, width is not provided or invalid. |
||
49 | * |
||
50 | * @return static |
||
51 | */ |
||
52 | public static function flockAttachmentViewWidgetException($exception) |
||
56 | |||
57 | /** |
||
58 | * Thrown when attachment views inline html source, height, width is not provided or invalid. |
||
59 | * |
||
60 | * @return static |
||
61 | */ |
||
62 | public static function flockAttachmentViewHtmlException($exception) |
||
66 | |||
67 | /** |
||
68 | * Thrown when attachment views image source, height, width is not provided or invalid. |
||
69 | * |
||
70 | * @return static |
||
71 | */ |
||
72 | public static function flockAttachmentViewImageException($exception) |
||
76 | |||
77 | /** |
||
78 | * Thrown when attachment URL field not provided or invalid. |
||
79 | * |
||
80 | * @return static |
||
81 | */ |
||
82 | public static function flockAttachmentUrlException($exception) |
||
86 | |||
87 | /** |
||
88 | * Thrown when attachment forward field is non boolean. |
||
89 | * |
||
90 | * @return static |
||
91 | */ |
||
92 | public static function flockAttachmentForwardException($exception) |
||
96 | |||
97 | /** |
||
98 | * Thrown when attachment download field source is invalid or missing. |
||
99 | * |
||
100 | * @return static |
||
101 | */ |
||
102 | public static function flockAttachmentDownloadException($exception) |
||
106 | |||
107 | /** |
||
108 | * Thrown when attachment button field has an error. |
||
109 | * |
||
110 | * @return static |
||
111 | */ |
||
112 | public static function flockAttachmentButtonException($exception) |
||
116 | |||
117 | /** |
||
118 | * Thrown when message object has invaild values. |
||
119 | * |
||
120 | * @return static |
||
121 | */ |
||
122 | public static function flockMessageException($exception) |
||
126 | } |
||
127 |