N°8772 - exceptions

This commit is contained in:
Eric Espie
2025-11-25 17:08:41 +01:00
parent 7a67267c7d
commit 7a515d04dd
6 changed files with 39 additions and 9 deletions

View File

@@ -43,6 +43,8 @@ class FormBlock extends AbstractTypeFormBlock
try {
// Build the form
$this->BuildForm();
} catch (FormsException $e) {
throw $e;
} catch (Exception $e) {
throw new FormBlockException('Unable to construct form', 0, $e);
}