Crate spinoso_exception

Source
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:

§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§

Traits§

  • Polymorphic exception type that corresponds to Ruby’s Exception.