core\Error::registerHandler PHP Method

registerHandler() public static method

Register custom handler for uncaught exception and errors
public static registerHandler ( )
    public static function registerHandler()
    {
        set_exception_handler(array(__CLASS__, 'handleUncaughtException'));
        set_error_handler(array(__CLASS__, 'handlePHPError'), E_ALL);
    }