# panic.rs - source
Source of the Rust file `/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.13.2/src/panic.rs`.
Keywords: rust, rustlang, rust-lang

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13

    use crate::exceptions::PyBaseException;

    pyo3_exception!(
        "
        The exception raised when Rust code called from Python panics.

        Like SystemExit, this exception is derived from BaseException so that
        it will typically propagate all the way through the stack and cause the
        Python interpreter to exit.
        ",
        PanicException,
        PyBaseException
    );