class Exception
Overview
Represents errors that occur during application execution.
Exception and its descendants are used to communicate between raise 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.
Exception subclasses may add additional information.
Direct Known Subclasses
Defined in:
promise/core_ext.crInstance Method Summary
-
#cause : Exception | Nil
Returns the previous exception at the time this exception was raised.
- #cause=(cause : Exception | Nil)
Instance methods inherited from class Object
__check_for_promise__
__check_for_promise__
Macros inherited from class Object
__check_if_promise__
__check_if_promise__
Instance Method Detail
Returns the previous exception at the time this exception was raised. This is useful for wrapping exceptions and retaining the original exception information.