$_exception
$_exception : \Exception
Holds the current exception
Class for intercepting PHP errors and unhandled exceptions. Each fault is caught and converted into Exception handled by midcom_exception_handler::show() with code 500 thus can be customized and make user friendly.
show(integer $httpcode, string $message)
Show an error page.
This will display a simple HTML Page reporting the error described by $httpcode and $message. The $httpcode is also used to send an appropriate HTTP Response.
The error pages can be customized by creating style elements named midcomerror$httpcode.
For a list of the allowed HTTP codes see the MIDCOM_ERR... constants
Note: This function will call _midcom_stop_request() after it is finished.
integer | $httpcode | The error code to send. |
string | $message | The message to print. |
send(integer $httpcode, string $message)
Send error for processing.
If the given error code has an action configured for it, that action will be performed. This means that system administrators can request email notifications of 500 "Internal Errors" and a special log of 404 "Not Founds".
integer | $httpcode | The error code to send. |
string | $message | The message to print. |