Class Error.Generic
- Description
Class for exception objects for errors of unspecified type.
- Variable error_backtrace
array(backtrace_frame|array(mixed)) Error.Generic.error_backtrace
- Description
The backtrace as returned by backtrace where the error occurred.
Code that catches and rethrows errors should ensure that this remains the same in the rethrown error.
- Variable error_message
string Error.Generic.error_message
- Description
The error message. It always ends with a newline (
'\n'
) character and it might be more than one line.Code that catches and rethrows errors may extend this with more error information.
- Method create
Error.Generic Error.Generic(string message, void|array(backtrace_frame|array(mixed)) backtrace)