Class

SystemExit

Inheritance
< Exception < Object

Descendents of class Exception are used to communicate between raise methods and rescue statements in begin/end blocks. Exception objects carry information about the exception—its type (the exception‘s class name), an optional descriptive string, and optional traceback information. Programs may subclass Exception to add additional information.

Methods

Class

Visibility Signature
public new (...)

Instance

Visibility Signature
public status ()
public success? ()

Class Method Detail

SystemExit.new(status=0) => system_exit

Create a new SystemExit exception with the given status.

Instance Method Detail

system_exit.status => fixnum

Return the status value associated with this system exit.

system_exit.success? => true or false

Returns true if exiting successful, false if not.