add new exception

This commit is contained in:
Ronald Quenta
2017-08-07 02:20:05 -04:00
parent 3226096677
commit 70bbade5e0
4 changed files with 70 additions and 8 deletions

View File

@@ -53,6 +53,8 @@ try {
break;
}
} catch (ProcessMaker\Exception\RBACException $e) {
G::header('location: ' . $e->getPath());
} catch (Exception $e) {
$view = new Maveriks\Pattern\Mvc\PhtmlView($rootDir . "framework/src/templates/Exception.phtml");
$view->set("message", $e->getMessage());