Skip to main content

Module error

Module error 

Source
Expand description

The single error type returned by every fallible SDK operation.

The Python SDK models failures as an exception hierarchy. Rust has no inheritance, so the hierarchy collapses into one enum and the isinstance checks become the predicates on Error (Error::is_server_error, Error::status, Error::code, …).

Modules§

codes
Server error codes the SDK reacts to. Any other code is carried through as a string.

Enums§

Error
Everything that can go wrong talking to a SIE server.
ModelLoadErrorClass
Why a model failed to load, as classified by the server.
TransportErrorKind
How a transport-level failure occurred, which decides whether it may be retried.

Type Aliases§

Result
Result alias used throughout the crate.