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
.
Modules§
- core
- Ruby exception class implementations.
Structs§
- Argument
Error - Ruby
ArgumentError
error type. - EOFError
- Ruby
EOFError
error type. - Encoding
Error - Ruby
EncodingError
error type. - Exception
- Ruby
Exception
error type. - Fatal
- Ruby
fatal
error type. - Fiber
Error - Ruby
FiberError
error type. - Float
Domain Error - Ruby
FloatDomainError
error type. - Frozen
Error - Ruby
FrozenError
error type. - IOError
- Ruby
IOError
error type. - Index
Error - Ruby
IndexError
error type. - Interrupt
- Ruby
Interrupt
error type. - KeyError
- Ruby
KeyError
error type. - Load
Error - Ruby
LoadError
error type. - Local
Jump Error - Ruby
LocalJumpError
error type. - Name
Error - Ruby
NameError
error type. - NoMemory
Error - Ruby
NoMemoryError
error type. - NoMethod
Error - Ruby
NoMethodError
error type. - NotImplemented
Error - Ruby
NotImplementedError
error type. - Range
Error - Ruby
RangeError
error type. - Regexp
Error - Ruby
RegexpError
error type. - Runtime
Error - Ruby
RuntimeError
error type. - Script
Error - Ruby
ScriptError
error type. - Security
Error - Ruby
SecurityError
error type. - Signal
Exception - Ruby
SignalException
error type. - Standard
Error - Ruby
StandardError
error type. - Stop
Iteration - Ruby
StopIteration
error type. - Syntax
Error - Ruby
SyntaxError
error type. - System
Call Error - Ruby
SystemCallError
error type. - System
Exit - Ruby
SystemExit
error type. - System
Stack Error - Ruby
SystemStackError
error type. - Thread
Error - Ruby
ThreadError
error type. - Type
Error - Ruby
TypeError
error type. - Uncaught
Throw Error - Ruby
UncaughtThrowError
error type. - Zero
Division Error - Ruby
ZeroDivisionError
error type.
Traits§
- Ruby
Exception - Polymorphic exception type that corresponds to Ruby’s
Exception
.