Error
type (joe
)
Extended By: AssertError
The Error
type represents an exception thrown during the
execution of a Joe
script. A script can catch errors
thrown during execution using the catch()
function.
- error.addInfo(message) → this
- error.javaStackTrace() → String
- error.message() → text
- error.stackTrace() → String
- error.traces() → List
- error.type() → name
Error Initializer
Error(message, [trace, ...]) → Error
Creates an Error
with the given message and optional information
trace messages.
Methods
error.addInfo()
error.addInfo(message) → this
Adds an information message to the list of traces.
error.javaStackTrace()
error.javaStackTrace() → String
Returns the complete error, including the initial error messages and all stack frames.
error.message()
error.message() → text
Gets the actual error message
error.stackTrace()
error.stackTrace() → String
Returns the complete error, including the initial error messages and all stack frames.
error.traces()
error.traces() → List
Returns the list of trace strings. Clients may add to the list
using addInfo()
.
and rethrow the error.
error.type()
error.type() → name
Gets the name of the concrete error type.