Module magnus::error

source ·
Expand description

Rust types for working with Ruby Exceptions and other interrupts.

See also Ruby for more error related methods.

Structs§

Enums§

  • The possible types of Error.
  • An error returned to indicate an attempt to interact with the Ruby API from a non-Ruby thread or without aquiring the GVL.
  • The state of a call to Ruby exiting early, interrupting the normal flow of code.

Functions§

  • Immediately terminate the process, printing Ruby internal state for debugging.
  • Outputs s to Ruby’s stderr if Ruby is configured to output warnings.

Type Aliases§

  • Shorthand for std::result::Result<T, magnus::Error>.