Skip to main content

ExceptionInfo

Trait ExceptionInfo 

Source
pub trait ExceptionInfo {
    // Required methods
    fn exn_value(&self) -> String;
    fn exn_is_declared(&self) -> bool;

    // Provided method
    fn exn_name(&self) -> &'static str { ... }
}
Expand description

This trait should be implemented for each individual exception type. It will typically be generated.

Required Methods§

Source

fn exn_value(&self) -> String

Source

fn exn_is_declared(&self) -> bool

Is a declared exception

Provided Methods§

Source

fn exn_name(&self) -> &'static str

Exception name

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§