/** * @var ?Exception $exception */ if($exception === null){ return; } $exceptions = []; if($exception instanceof Exceptions\ValidationException){ $exceptions = $exception->Exceptions; } else{ $exceptions[] = $exception; } ?>
$message = $ex->getMessage(); if($message == ''){ $message = 'An error occurred.'; } ?>= str_replace('CAPTCHA', 'CAPTCHA', Formatter::EscapeHtml($message)) ?>