AssertError
type (joe
)
Extends: Error
The AssertError
type represents an exception thrown during the
execution of a Joe
script by the assert
statement, or
created by the joe.test
package to represent a test value. A
script can catch errors thrown during execution using
the catch()
function.
Error Methods
- error.addInfo(message) → this
- error.javaStackTrace() → String
- error.message() → text
- error.stackTrace() → String
- error.traces() → List
- error.type() → name
AssertError Initializer
AssertError(message, [trace, ...]) → AssertError
Creates an AssertError
with the given message and informational
trace messages.