Functions
cause | I Returns the error's cause. |
detail | I Returns the error's detail record. |
message | I Returns the error's message. |
stackTrace | I Returns an object representing the stack trace of the error. |
toBalString | I Converts an error to a string that describes the value in Ballerina syntax. |
toString | I Converts an error to a string. |
detail
function detail(error e) returns readonly & DetailType
Returns the error's detail record.
The returned value will be immutable.
Parameters
- e error
the error value
stackTrace
function stackTrace(error e) returns StackFrame[ ]
Returns an object representing the stack trace of the error.
Parameters
- e error
the error value
Return Type
(StackFrame[ ])a new object representing the stack trace of the error value The first member of the array represents the top of the call stack.
toBalString
Converts an error to a string that describes the value in Ballerina syntax.
The details of the conversion are specified by the ToString abstract operation defined in the Ballerina Language Specification, using the expression style.
Parameters
- e error
the error to be converted to a string
toString
Converts an error to a string.
The details of the conversion are specified by the ToString abstract operation defined in the Ballerina Language Specification, using the direct style.
Parameters
- e error
the error to be converted to a string