Exception

The ancestor class of all exceptions.

Refer to Built-in Exception Classes for information on its subclasses.

Superclass

Class Method

Exception.new([error_message])

Creates and returns a new exception object. A string representing an error message can be supplied as an argument. This message will become the value of the message attribute (below) and will be displayed by the default exception handler.

Methods

exception([error_message])

Returns self when no argument is specified. Otherwise, creates a copy of itself with the message attribute as error_message and returns it.

raise essentially calls the Exception object's exception method.

backtrace

Returns backtrace information.

A String array of this format.

message

Returns the error message string.