error

When an error occurs within a method, an object can be returned. The object, called an error, contains information about the error, including its type and a message.

Methods

Method Description
code Returns the error code.
msg Returns the error message.
Method Description
err Initialize a new error.
raise Raise an error.
try Try a statement and catch if an error is raised.

Build-in errors

See errors for a list of all the build-in error type.