[TASK] Improve duplicate exception code check
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Domain / Builder / ValidationBuilder.php
index 4853a25..f56bccc 100644 (file)
@@ -118,7 +118,10 @@ class ValidationBuilder
                 $ruleName = $rulesTyposcript[$key];
                 $validatorClassName = $this->typoScriptRepository->getRegisteredClassName($ruleName, 'registeredValidators');
                 if ($validatorClassName === null) {
-                    throw new \RuntimeException('Class "' . $validatorClassName . '" not registered via typoscript.');
+                    throw new \RuntimeException(
+                        'Class "' . $validatorClassName . '" not registered via typoscript.',
+                        1476048511
+                    );
                 }
                 if (
                     (int)$key
@@ -161,7 +164,10 @@ class ValidationBuilder
                             'mandatoryMessage' => $mandatoryMessage
                         ];
                     } else {
-                        throw new \RuntimeException('Class "' . $validatorClassName . '" could not be loaded.');
+                        throw new \RuntimeException(
+                            'Class "' . $validatorClassName . '" could not be loaded.',
+                            1476048550
+                        );
                     }
                 }
             }