Commit 86772416 authored by Carsten  Rose's avatar Carsten Rose
Browse files

QfqController.php: extended to catch userReportFormException

parent 3f6fedaa
...@@ -8,7 +8,8 @@ namespace IMATHUZH\Qfq\Controller; ...@@ -8,7 +8,8 @@ namespace IMATHUZH\Qfq\Controller;
use qfq; use qfq;
require_once(__DIR__ . '/../../qfq/qfq/QuickFormQuery.php'); require_once(__DIR__ . '/../../qfq/qfq/QuickFormQuery.php');
require_once(__DIR__ . '/../../qfq/qfq/exceptions/UserException.php'); require_once(__DIR__ . '/../../qfq/qfq/exceptions/UserFormException.php');
require_once(__DIR__ . '/../../qfq/qfq/exceptions/UserReportExtension.php');
require_once(__DIR__ . '/../../qfq/qfq/exceptions/CodeException.php'); require_once(__DIR__ . '/../../qfq/qfq/exceptions/CodeException.php');
require_once(__DIR__ . '/../../qfq/qfq/exceptions/DbException.php'); require_once(__DIR__ . '/../../qfq/qfq/exceptions/DbException.php');
...@@ -23,6 +24,8 @@ class QfqController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController { ...@@ -23,6 +24,8 @@ class QfqController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
} catch (qfq\UserFormException $e) { } catch (qfq\UserFormException $e) {
$html = $e->formatMessage(); $html = $e->formatMessage();
} catch (qfq\UserReportException $e) {
$html = $e->formatMessage();
} catch (qfq\CodeException $e) { } catch (qfq\CodeException $e) {
$html = $e->formatMessage(); $html = $e->formatMessage();
} catch (qfq\DbException $e) { } catch (qfq\DbException $e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment