1 | <?php |
||
29 | class EntryNotFoundException extends FormzException |
||
30 | { |
||
31 | const FIELD_NOT_FOUND = 'The field "%s" was not found in the form "%s" with class "%s".'; |
||
32 | |||
33 | const CONDITION_NOT_FOUND = 'Trying to access a condition which is not registered: "%s". Here is a list of all currently registered conditions: "%s".'; |
||
34 | |||
35 | const FORM_ADD_CONDITION_NOT_FOUND = 'Trying to add a condition "%s" which is not registered to the form definition. Here is a list of all currently registered conditions: "%s".'; |
||
36 | |||
37 | const ACTIVATION_ADD_CONDITION_NOT_FOUND = 'Trying to add a condition "%s" which is not registered to the activation. Here is a list of all currently registered conditions: "%s".'; |
||
38 | |||
39 | const INSTANTIATE_CONDITION_NOT_FOUND = 'Trying to instantiate a condition which is not registered: "%s". Here is a list of all currently registered conditions: "%s".'; |
||
40 | |||
41 | const ACTIVATION_CONDITION_NOT_FOUND = 'No condition "%s" was found.'; |
||
42 | |||
43 | const CONFIGURATION_FIELD_NOT_FOUND = 'The field "%s" was not found. Please use the function `%s::hasField()` before.'; |
||
44 | |||
45 | const VALIDATOR_NOT_FOUND = 'The validation "%s" was not found. Please use the function `%s::hasValidator()` before.'; |
||
46 | |||
47 | const BEHAVIOUR_NOT_FOUND = 'The behaviour "%s" was not found. Please use the function `%s::hasBehaviour()` before.'; |
||
48 | |||
49 | const VIEW_LAYOUT_NOT_FOUND = 'The layout "%s" was not found. Please use the function `%s::hasLayout()` before.'; |
||
50 | |||
51 | const VIEW_LAYOUT_ITEM_NOT_FOUND = 'The layout item "%s" was not found. Please use the function `%s::hasItem()` before.'; |
||
52 | |||
53 | const VIEW_CLASS_NOT_FOUND = 'The class "%s" was not found. Please use the function `%s::hasItem()` before.'; |
||
54 | |||
55 | const VALIDATION_NOT_FOUND_FOR_FIELD = 'The field "%s" does not have a rule "%s".'; |
||
56 | |||
57 | const ERROR_KEY_NOT_FOUND_FOR_VALIDATOR = 'The error key "%s" does not exist for the validator "%s".'; |
||
58 | |||
59 | const VIEW_HELPER_FIELD_NOT_FOUND = 'The field "%s" could not be fetched for the view helper "%s": please either use this view helper inside the view helper "%s", or fill the parameter `field` of this view helper with the field name you want.'; |
||
60 | |||
61 | const FIELD_VIEW_HELPER_LAYOUT_NOT_FOUND = 'The layout "%s" could not be found. Please check your TypoScript configuration.'; |
||
62 | |||
63 | const FIELD_VIEW_HELPER_LAYOUT_ITEM_NOT_FOUND = 'The layout "%s" does not have an item "%s".'; |
||
64 | |||
65 | const CONTROLLER_SERVICE_ACTION_FORM_ARGUMENT_MISSING = 'The method `%s::%s()` must have a parameter `$%s`. Note that you can also change the parameter `name` of the form view helper.'; |
||
66 | |||
67 | const SLOT_NOT_FOUND = 'No slot "%s" was found.'; |
||
68 | |||
69 | const FORM_CONFIGURATION_NOT_FOUND = 'The configuration for form of class "%s" was not found. Please use the function `%s::hasForm()` before.'; |
||
70 | |||
71 | const CONDITION_NOT_FOUND_IN_DEFINITION = 'The condition "%s" was not found in the form definition. Please use the function `%s::hasCondition()` before.'; |
||
72 | |||
73 | const CONDITION_DOES_NOT_EXIST = 'The condition "%s" does not exist'; |
||
74 | |||
75 | /** |
||
76 | * @code 1472650209 |
||
77 | * |
||
78 | * @param string $identifier |
||
79 | * @param array $list |
||
80 | * @return self |
||
81 | */ |
||
82 | final public static function conditionNotFound($identifier, array $list) |
||
83 | { |
||
84 | /** @var self $exception */ |
||
85 | $exception = self::getNewExceptionInstance( |
||
86 | self::CONDITION_NOT_FOUND, |
||
87 | [ |
||
88 | $identifier, |
||
89 | implode('" ,"', array_keys($list)) |
||
90 | ] |
||
91 | ); |
||
92 | |||
93 | return $exception; |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * @code 1493890438 |
||
98 | * |
||
99 | * @param string $identifier |
||
100 | * @param array $list |
||
101 | * @return self |
||
102 | */ |
||
103 | final public static function formAddConditionNotFound($identifier, array $list) |
||
104 | { |
||
105 | /** @var self $exception */ |
||
106 | $exception = self::getNewExceptionInstance( |
||
107 | self::FORM_ADD_CONDITION_NOT_FOUND, |
||
108 | [ |
||
109 | $identifier, |
||
110 | implode('" ,"', array_keys($list)) |
||
111 | ] |
||
112 | ); |
||
113 | |||
114 | return $exception; |
||
115 | } |
||
116 | |||
117 | /** |
||
118 | * @code 1494329341 |
||
119 | * |
||
120 | * @param string $identifier |
||
121 | * @param array $list |
||
122 | * @return self |
||
123 | */ |
||
124 | final public static function activationAddConditionNotFound($identifier, array $list) |
||
125 | { |
||
126 | /** @var self $exception */ |
||
127 | $exception = self::getNewExceptionInstance( |
||
128 | self::ACTIVATION_ADD_CONDITION_NOT_FOUND, |
||
129 | [ |
||
130 | $identifier, |
||
131 | implode('" ,"', array_keys($list)) |
||
132 | ] |
||
133 | ); |
||
134 | |||
135 | return $exception; |
||
136 | } |
||
137 | |||
138 | /** |
||
139 | * @code 1493890825 |
||
140 | * |
||
141 | * @param string $identifier |
||
142 | * @param array $list |
||
143 | * @return self |
||
144 | */ |
||
145 | final public static function instantiateConditionNotFound($identifier, array $list) |
||
158 | |||
159 | /** |
||
160 | * @code 1488482191 |
||
161 | * |
||
162 | * @param string $name |
||
163 | * @return self |
||
164 | */ |
||
165 | final public static function activationConditionNotFound($name) |
||
175 | |||
176 | /** |
||
177 | * @code 1489765133 |
||
178 | * |
||
179 | * @param string $name |
||
180 | * @return self |
||
181 | */ |
||
182 | final public static function configurationFieldNotFound($name) |
||
192 | |||
193 | /** |
||
194 | * @code 1487672276 |
||
195 | * |
||
196 | * @param string $name |
||
197 | * @return self |
||
198 | */ |
||
199 | final public static function validatorNotFound($name) |
||
209 | |||
210 | /** |
||
211 | * @code 1494685753 |
||
212 | * |
||
213 | * @param string $name |
||
214 | * @return self |
||
215 | */ |
||
216 | final public static function behaviourNotFound($name) |
||
226 | |||
227 | /** |
||
228 | * @code 1489753952 |
||
229 | * |
||
230 | * @param string $name |
||
231 | * @return self |
||
232 | */ |
||
233 | final public static function viewLayoutNotFound($name) |
||
243 | |||
244 | /** |
||
245 | * @code 1489757511 |
||
246 | * |
||
247 | * @param string $name |
||
248 | * @return self |
||
249 | */ |
||
250 | final public static function viewLayoutItemNotFound($name) |
||
260 | |||
261 | /** |
||
262 | * @code 1489754909 |
||
263 | * |
||
264 | * @param string $name |
||
265 | * @return self |
||
266 | */ |
||
267 | final public static function viewClassNotFound($name) |
||
277 | |||
278 | /** |
||
279 | * @code 1487672956 |
||
280 | * |
||
281 | * @param string $validationName |
||
282 | * @param string $fieldName |
||
283 | * @return self |
||
284 | */ |
||
285 | final public static function ajaxControllerValidationNotFoundForField($validationName, $fieldName) |
||
295 | |||
296 | /** |
||
297 | * @code 1487671603 |
||
298 | * |
||
299 | * @param string $fieldName |
||
300 | * @param FormObject $formObject |
||
301 | * @return self |
||
302 | */ |
||
303 | final public static function ajaxControllerFieldNotFound($fieldName, FormObject $formObject) |
||
313 | |||
314 | /** |
||
315 | * @code 1455272659 |
||
316 | * |
||
317 | * @param string $key |
||
318 | * @param AbstractValidator $validator |
||
319 | * @return self |
||
320 | */ |
||
321 | final public static function errorKeyNotFoundForValidator($key, AbstractValidator $validator) |
||
331 | |||
332 | /** |
||
333 | * @code 1487947224 |
||
334 | * |
||
335 | * @param string $fieldName |
||
336 | * @param FormObject $formObject |
||
337 | * @return self |
||
338 | */ |
||
339 | final public static function equalsToFieldValidatorFieldNotFound($fieldName, FormObject $formObject) |
||
349 | |||
350 | /** |
||
351 | * @code 1467623761 |
||
352 | * |
||
353 | * @param string $fieldName |
||
354 | * @return self |
||
355 | */ |
||
356 | final public static function classViewHelperFieldNotFound($fieldName) |
||
366 | |||
367 | /** |
||
368 | * @code 1467624152 |
||
369 | * |
||
370 | * @param string $fieldName |
||
371 | * @return self |
||
372 | */ |
||
373 | final public static function formatMessageViewHelperFieldNotFound($fieldName) |
||
383 | |||
384 | /** |
||
385 | * @code 1465243586 |
||
386 | * |
||
387 | * @param string $layoutName |
||
388 | * @return self |
||
389 | */ |
||
390 | final public static function fieldViewHelperLayoutNotFound($layoutName) |
||
400 | |||
401 | /** |
||
402 | * @code 1485867803 |
||
403 | * |
||
404 | * @param string $layoutName |
||
405 | * @param string $itemName |
||
406 | * @return self |
||
407 | */ |
||
408 | final public static function fieldViewHelperLayoutItemNotFound($layoutName, $itemName) |
||
418 | |||
419 | /** |
||
420 | * @code 1473084335 |
||
421 | * |
||
422 | * @param string $fieldName |
||
423 | * @param FormObject $formObject |
||
424 | * @return self |
||
425 | */ |
||
426 | final public static function formatMessageViewHelperFieldNotFoundInForm($fieldName, FormObject $formObject) |
||
436 | |||
437 | /** |
||
438 | * @code 1457441846 |
||
439 | * |
||
440 | * @param string $controllerObjectName |
||
441 | * @param string $actionName |
||
442 | * @param string $formName |
||
443 | * @return self |
||
444 | */ |
||
445 | final public static function controllerServiceActionFormArgumentMissing($controllerObjectName, $actionName, $formName) |
||
455 | |||
456 | /** |
||
457 | * @code 1488988452 |
||
458 | * |
||
459 | * @param string $name |
||
460 | * @return self |
||
461 | */ |
||
462 | final public static function slotClosureSlotNotFound($name) |
||
472 | |||
473 | /** |
||
474 | * @code 1489497046 |
||
475 | * |
||
476 | * @param string $name |
||
477 | * @return self |
||
478 | */ |
||
479 | final public static function slotArgumentsSlotNotFound($name) |
||
489 | |||
490 | /** |
||
491 | * @code 1491997168 |
||
492 | * |
||
493 | * @return self |
||
494 | */ |
||
495 | final public static function formConfigurationNotFound() |
||
505 | |||
506 | /** |
||
507 | * @code 1493881671 |
||
508 | * |
||
509 | * @param string $name |
||
510 | * @return self |
||
511 | */ |
||
512 | final public static function conditionNotFoundInDefinition($name) |
||
522 | } |
||
523 |