System:Error
From Aspen Documentation
For full public method documentation, see the API Manual.
The ErrorHandler class handles PHP and any application-level errors messages. Error messages by default are logged to the error_log table in the database, and (if enabled) be sent via email.
We set the php.ini value for display_errors to false at the very top of the Bootstrap file.
PHP error messages will be routed by default to this class. To trigger errors from within your application, you may use the raise method.
For example:
$this->APP->error->raise(1, 'An error message', __FILE__, __LINE__);
The minimum_displayable_error configuration setting determines what level of error messages are sent to the browser. By default, it is set to 1 which is the most serious level available.
Options are available in the configuration files that allow you determine where errors are sent. They may logged to the database or emailed. Errors are also written to the system log if logging is enabled.
Displays
By default, Aspen displays all error messages above the minimum value using the admin/templates/error.tpl.php template. This template uses javascript to display error information as well some basic stack trace values.