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.
| Public Methods | |
|---|---|
| new | Create a new SystemExit exception with the given status. |
| status | Return the status value associated with this system exit. |
| success? | Returns true if exiting successful, false if not. |
<code/>and<pre/>for code samples.