Methods

PHP Error handler

error_handler(int $severity, string $message, string $filepath, int $line) : bool

Parameters

$severity

int

the severity code

$message

string

the error message

$filepath

string

the path to the file throwing the error

$line

int

the line number of the error

Returns

boolwhether to continue with execution

PHP Exception handler

exception_handler(\Fuel\Core\Exception $e) : bool

Parameters

$e

\Fuel\Core\Exception

the exception

Returns

bool

Shows a small notice error, only when not in production or when forced.

notice(string $msg, bool $always_show) : void

This is used by several libraries to notify the developer of certain things.

Parameters

$msg

string

the message to display

$always_show

bool

whether to force display the notice or not

Native PHP shutdown handler

shutdown_handler() : string

Returns

string

prepare_exception()

prepare_exception($e, $fatal) 

Parameters

$e

$fatal

Shows an error.

show_php_error(\Fuel\Core\Exception $e) : void

It will stop script execution if the error code is not in the errors.continue_on whitelist.

Parameters

$e

\Fuel\Core\Exception

the exception to show

Shows the errors/production view and exits.

show_production_error($e) : void

This only gets called when an error occurs in production mode.

Parameters

$e

 Properties

 

$fatal_levels

$fatal_levels 

 

$levels

$levels 

 

$loglevel

$loglevel 

 

$non_fatal_cache

$non_fatal_cache