1 2 3 4 5 6 7 8 9 10 11 12 13
//! Python bindings for Vortex errors. use pyo3::PyErr; #[cfg(feature = "python")] use pyo3::exceptions::PyValueError; use crate::VortexError; impl From<VortexError> for PyErr { fn from(value: VortexError) -> Self { PyValueError::new_err(value.to_string()) } }