Method MasterObject()->describe_backtrace()
- Method
describe_backtrace
stringdescribe_backtrace(mixedexception)- Description
Called by various routines to format a readable description of an exception.
- Parameter
exception Something that was thrown. Usually an Error.Generic object, or an array with the following content:
Array stringmsgError message.
array(Pike.BacktraceFrame|array(mixed))backtraceBacktrace to the point where the exception occurred.
- Returns
Returns a string describing the exeception.
- Note
Usually added by the initialization code the global name space with add_constant().
- See also
- Method
describe_backtrace
stringdescribe_backtrace(mixedtrace,void|intlinewidth,int|voidflags)- Description
Return a readable message that describes where the backtrace trace was made (by backtrace).
It may also be an error object or an array (typically caught by a catch), in which case the error message also is included in the description.
- Parameter
trace Backtrace to format.
- Parameter
linewidth Number of characters per line. Pass
-1to disable wrapping of the output. Defaults to the width of the Stdio.stdin tty (if known). Otherwise defaults to a large number.- Parameter
flags Flags affecting the backtrace behavior.
1Reserved (inhibit Roxen testsuite complaints).
2Inhibit rendering of container values.
- Note
For convenience this function is also made available as predef::describe_backtrace().
- Note
The flags argument was added in Pike 9.0.
- See also