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:
NoMemoryErrorScriptErrorSecurityErrorSignalExceptionStandardError— default forrescueSystemExitSystemStackErrorfatal— 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
ArgumentErrorerror type. - EOFError
- Ruby
EOFErrorerror type. - Encoding
Error - Ruby
EncodingErrorerror type. - Exception
- Ruby
Exceptionerror type. - Fatal
- Ruby
fatalerror type. - Fiber
Error - Ruby
FiberErrorerror type. - Float
Domain Error - Ruby
FloatDomainErrorerror type. - Frozen
Error - Ruby
FrozenErrorerror type. - IOError
- Ruby
IOErrorerror type. - Index
Error - Ruby
IndexErrorerror type. - Interrupt
- Ruby
Interrupterror type. - KeyError
- Ruby
KeyErrorerror type. - Load
Error - Ruby
LoadErrorerror type. - Local
Jump Error - Ruby
LocalJumpErrorerror type. - Name
Error - Ruby
NameErrorerror type. - NoMemory
Error - Ruby
NoMemoryErrorerror type. - NoMethod
Error - Ruby
NoMethodErrorerror type. - NotImplemented
Error - Ruby
NotImplementedErrorerror type. - Range
Error - Ruby
RangeErrorerror type. - Regexp
Error - Ruby
RegexpErrorerror type. - Runtime
Error - Ruby
RuntimeErrorerror type. - Script
Error - Ruby
ScriptErrorerror type. - Security
Error - Ruby
SecurityErrorerror type. - Signal
Exception - Ruby
SignalExceptionerror type. - Standard
Error - Ruby
StandardErrorerror type. - Stop
Iteration - Ruby
StopIterationerror type. - Syntax
Error - Ruby
SyntaxErrorerror type. - System
Call Error - Ruby
SystemCallErrorerror type. - System
Exit - Ruby
SystemExiterror type. - System
Stack Error - Ruby
SystemStackErrorerror type. - Thread
Error - Ruby
ThreadErrorerror type. - Type
Error - Ruby
TypeErrorerror type. - Uncaught
Throw Error - Ruby
UncaughtThrowErrorerror type. - Zero
Division Error - Ruby
ZeroDivisionErrorerror type.
Traits§
- Ruby
Exception - Polymorphic exception type that corresponds to Ruby’s
Exception.