pub enum PythonError {
}Expand description
Python error type
Variants§
MethodNotFound(String)
Method not found error
AttributeNotFound(String)
Attribute not found error
LexicalError(String)
Lexical analysis error
SyntaxError(String)
Syntax analysis error
RuntimeError(String)
Runtime error
TypeError(String)
Type error
ArgumentError(String)
Argument error
NameError(String)
Name error
IndexError(String)
Index error
KeyError(String)
Key error
ZeroDivisionError(String)
Zero division error
IOError(String)
IO error
ImportError(String)
Import error
Trait Implementations§
Source§impl Clone for PythonError
impl Clone for PythonError
Source§fn clone(&self) -> PythonError
fn clone(&self) -> PythonError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PythonError
impl Debug for PythonError
Source§impl Display for PythonError
impl Display for PythonError
Source§impl Error for PythonError
impl Error for PythonError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PythonError
impl PartialEq for PythonError
impl StructuralPartialEq for PythonError
Auto Trait Implementations§
impl Freeze for PythonError
impl RefUnwindSafe for PythonError
impl Send for PythonError
impl Sync for PythonError
impl Unpin for PythonError
impl UnsafeUnpin for PythonError
impl UnwindSafe for PythonError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more