Extracted from Pike v8.0 release 240 as of 2016-05-30.
   

Class Error.Generic

Inheritance graph
Error.Generic Charset.DecodeError Charset.EncodeError GSSAPI.Error GSSAPI.MissingServicesError Parser.C.UnterminatedStringError Standards.JSON.DecodeError
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)