Skip to main content

to_pyexception

Function to_pyexception 

Source
pub fn to_pyexception(e: impl Display) -> PyErr
Expand description

Converts any type that implements Display to a Python Exception.

ยงErrors

Returns a Python error with the error string.