Skip to main content

Module error

Module error 

Source
Expand description

Error, the error that crosses the FFI boundary, and its ErrorKinds.

Structs§

Error
An error that crosses the FFI boundary, with a kind, a message and a backtrace.
ErrorKind
The kind of an Error, such as ValueError, matching the exception type that Python raises.
ErrorObj
The object behind an Error: its kind, message, backtrace, cause and context.

Constants§

ATTRIBUTE_ERROR
AttributeError: a field, method or attribute does not exist.
INDEX_ERROR
IndexError: an index is out of range.
INTERNAL_ERROR
InternalError: a bug, such as a broken invariant or a caught panic.
KEY_ERROR
KeyError: a map has no such key.
OVERFLOW_ERROR
OverflowError: a result does not fit its type.
RUNTIME_ERROR
RuntimeError: an operation failed for another reason.
TYPE_ERROR
TypeError: a value has the wrong type.
VALUE_ERROR
ValueError: an argument has the right type but a bad value.
ZERO_DIVISION_ERROR
ZeroDivisionError: a division or remainder by zero.

Type Aliases§

Result
A Result whose error type defaults to Error.