##// END OF EJS Templates
rust-pyo3: defining GraphError...
rust-pyo3: defining GraphError This pretty much parallels the way in works with `cpython`. A warning, though: this new `pyo3_rustext.GraphError` is not the same as `rustext.GraphError`, yet both subclass `ValueError`.

File last commit:

r53305:20c0472b default
r53305:20c0472b default
Show More
exceptions.rs
4 lines | 124 B | application/rls-services+xml | RustLexer
use pyo3::create_exception;
use pyo3::exceptions::PyValueError;
create_exception!(pyo3_rustext, GraphError, PyValueError);