[−][src]Crate spinoso_exception
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
core | Ruby exception class implementations. |
Structs
ArgumentError | Ruby |
EOFError | Ruby |
EncodingError | Ruby |
Exception | Ruby |
Fatal | Ruby |
FiberError | Ruby |
FloatDomainError | Ruby |
FrozenError | Ruby |
IOError | Ruby |
IndexError | Ruby |
Interrupt | Ruby |
KeyError | Ruby |
LoadError | Ruby |
LocalJumpError | Ruby |
NameError | Ruby |
NoMemoryError | Ruby |
NoMethodError | Ruby |
NotImplementedError | Ruby |
RangeError | Ruby |
RegexpError | Ruby |
RuntimeError | Ruby |
ScriptError | Ruby |
SecurityError | Ruby |
SignalException | Ruby |
StandardError | Ruby |
StopIteration | Ruby |
SyntaxError | Ruby |
SystemCallError | Ruby |
SystemExit | Ruby |
SystemStackError | Ruby |
ThreadError | Ruby |
TypeError | Ruby |
UncaughtThrowError | Ruby |
ZeroDivisionError | Ruby |
Traits
RubyException | Polymorphic exception type that corresponds to Ruby's |