Class ExceptionController
Class ExceptionController contains the page shown on Exceptions (throw new Exception($e)). It is called by default on such cases.
- Core\ParentController
- Core\ExceptionController
Namespace: Core
Package: Core
Hooks:
Located at ExceptionController.php
Package: Core
Hooks:
('show_prod_exception', ['e' => $e]) // Called when an exception is thrown on the PROD environmentCore\ExceptionController::showException()
('show_dev_exception', ['e' => $e]) // Called when an exception is thrown on the DEV environmentCore\ExceptionController::showException()
Located at ExceptionController.php
public static
|
#
singleton( $path = FALSE )
Returns the ExceptionController instance, creating it if it did not exist. |
public
|
#
showException( Exception $e )
Outputs a 500 header. In dev mode and in localhost shows the catched exception with debug information, otherwise a 500 page is shown. |
__construct(),
add(),
addFooter(),
addHeader(),
addJSVar(),
addScript(),
addStyle(),
asset(),
cache(),
compressWithMinify(),
get(),
getGet(),
getModel(),
getPost(),
header(),
json(),
minimize(),
minimizeURL(),
path(),
redirect(),
setFavicon(),
setTitle(),
show(),
url()
|
$ajax,
$config,
$hooks,
$model,
$path,
$templatePath,
$vars,
$viewPath
|