pyo3/src/panic.rs

13 lines
389 B
Rust
Raw Normal View History

use crate::exceptions::BaseException;
/// 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.
pub struct PanicException {
_private: (),
}
pyo3_exception!(PanicException, BaseException);