Public Member Functions | |
| __construct ($message= 'Generic Habari Error', $code=0, $is_error=false) | |
| humane_error () | |
| out () | |
| get () | |
Static Public Member Functions | |
| static | handle_errors () |
| static | exception_handler ($exception) |
| static | error_handler ($errno, $errstr, $errfile, $errline, $errcontext) |
| static | raise ($error_message, $severity=E_USER_ERROR) |
| static | is_error ($obj) |
Protected Attributes | |
| $message = '' | |
| $is_error = false | |
Contains error-related functions and Habari's error handler.
Definition at line 11 of file error.php.
| Error::__construct | ( | $ | message = 'Generic Habari Error', |
|
| $ | code = 0, |
|||
| $ | is_error = false | |||
| ) |
| static Error::error_handler | ( | $ | errno, | |
| $ | errstr, | |||
| $ | errfile, | |||
| $ | errline, | |||
| $ | errcontext | |||
| ) | [static] |
Used to handle all PHP errors after Error::handle_errors() is called.
| static Error::exception_handler | ( | $ | exception | ) | [static] |
| Error::get | ( | ) |
| static Error::handle_errors | ( | ) | [static] |
| Error::humane_error | ( | ) |
Get the error text, file, and line number from the backtrace, which is more accurate
Definition at line 75 of file error.php.
Referenced by UserThemeHandler::act(), and UserThemeHandler::display().
| static Error::is_error | ( | $ | obj | ) | [static] |
function is_error
Returns true if the argument is an Error instance
Definition at line 255 of file error.php.
Referenced by __construct(), Options::__set(), InfoRecords::commit(), and InfoRecords::delete_all().
| Error::out | ( | ) |
| static Error::raise | ( | $ | error_message, | |
| $ | severity = E_USER_ERROR | |||
| ) | [static] |
function raise
Convenience method to create and return a new Error object
Definition at line 245 of file error.php.
Referenced by RPCClient::__construct(), Utils::crypt(), ColorUtils::hex_rgb(), ColorUtils::rgb_hsv(), Site::script_name(), Utils::ssha(), and Utils::ssha512().
1.7.1