Expand description
Built in Ruby exception types.
Descendants of class Exception
are used to communicate between
Kernel#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
like NameError#name
.
§Ruby Exception Hierarchy
The built-in subclasses of Exception
are:
NoMemoryError
ScriptError
SecurityError
SignalException
StandardError
— default forrescue
SystemExit
SystemStackError
fatal
— impossible to rescue
§no_std
This crate is no_std
compatible when built without the std
feature. This
crate has a required dependency on alloc
.
§Crate features
All features are enabled by default.
- std - Enables a dependency on the Rust Standard Library. Activating
this feature enables
std::error::Error
impls on error types in this crate.
Modules§
- Ruby exception class implementations.
Structs§
- Ruby
ArgumentError
error type. - Ruby
EOFError
error type. - Ruby
EncodingError
error type. - Ruby
Exception
error type. - Ruby
fatal
error type. - Ruby
FiberError
error type. - Ruby
FloatDomainError
error type. - Ruby
FrozenError
error type. - Ruby
IOError
error type. - Ruby
IndexError
error type. - Ruby
Interrupt
error type. - Ruby
KeyError
error type. - Ruby
LoadError
error type. - Ruby
LocalJumpError
error type. - Ruby
NameError
error type. - Ruby
NoMemoryError
error type. - Ruby
NoMethodError
error type. - Ruby
NotImplementedError
error type. - Ruby
RangeError
error type. - Ruby
RegexpError
error type. - Ruby
RuntimeError
error type. - Ruby
ScriptError
error type. - Ruby
SecurityError
error type. - Ruby
SignalException
error type. - Ruby
StandardError
error type. - Ruby
StopIteration
error type. - Ruby
SyntaxError
error type. - Ruby
SystemCallError
error type. - Ruby
SystemExit
error type. - Ruby
SystemStackError
error type. - Ruby
ThreadError
error type. - Ruby
TypeError
error type. - Ruby
UncaughtThrowError
error type. - Ruby
ZeroDivisionError
error type.
Traits§
- Polymorphic exception type that corresponds to Ruby’s
Exception
.