1
2
3
4
5
6
7
8
9
10
11
12
13
//! Python bindings for Vortex errors.

#[cfg(feature = "python")]
use pyo3::exceptions::PyValueError;
use pyo3::PyErr;

use crate::VortexError;

impl From<VortexError> for PyErr {
    fn from(value: VortexError) -> Self {
        PyValueError::new_err(value.to_string())
    }
}