pyo3

Macro create_exception_type_object

Source
macro_rules! create_exception_type_object {
    ($module: expr, $name: ident, $base: ty, None) => { ... };
    ($module: expr, $name: ident, $base: ty, Some($doc: expr)) => { ... };
    ($module: expr, $name: ident, $base: ty, $doc: expr) => { ... };
}
Expand description

impl PyTypeInfo for $name where $name is an exception newly defined in Rust code.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here