Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • Exception
  • Overview
  • Namespace
  • Class
  • Download

Class Exception

Class Exception contains the page shown on Exceptions (throw new Exception($e)). It is called by default on such cases.

Core\ParentController
Extended by Core\Exceptions\Exception
Namespace: Core\Exceptions
Package: Core
Hooks:
('show_prod_exception', ['e' => $e]) // Called when an exception is thrown on the PROD environment \Core\Exception::showException
('show_dev_exception', ['e' => $e]) // Called when an exception is thrown on the DEV environment \Core\Exception::showException

Located at app/Exceptions/Exception.php
Methods summary
public static Core\Exceptions\Exception
# singleton( $path = FALSE )

Returns the Exception instance, creating it if it did not exist.

Returns the Exception instance, creating it if it did not exist.

Returns

Core\Exceptions\Exception

Overrides

Core\ParentController::singleton()
public
# showException( Core\Exceptions\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.

Outputs a 500 header. In dev mode and in localhost shows the catched exception with debug information, otherwise a 500 page is shown.

Parameters

$e

See

isLocalServer()
isProd()
isDev()
Methods inherited from Core\ParentController
__construct(), add(), addFooter(), addHeader(), addJSVar(), addScript(), addStyle(), asset(), cache(), compressWithMinify(), get(), getGet(), getModel(), getPost(), header(), json(), minimize(), minimizeURL(), path(), redirect(), setFavicon(), setTitle(), show(), url()
Properties inherited from Core\ParentController
$ajax, $config, $hooks, $model, $path, $templatePath, $vars, $viewPath
Ribosome API documentation generated by ApiGen