Skip to content

radex.exceptions

Python mirror of the C++ exception hierarchy in radex/exceptions.hpp.

RadexError

Bases: RuntimeError

Base class for every error raised by radex.

KeyNotFoundError

Bases: RadexError

A key was requested that is not present in the store.

TimeoutError

Bases: RadexError

A key did not appear in the store before the timeout elapsed.

TypeMismatchError

Bases: RadexError

The stored item does not match the description it was requested with.

RankMismatchError

Bases: TypeMismatchError

A scalar was requested at a tensor key, or a tensor at a scalar key.

DTypeMismatchError

Bases: TypeMismatchError

The stored element type differs from the requested one.

MetadataError

Bases: RadexError

An item's metadata record could not be decoded.

BackendUnavailableError

Bases: RadexError

A client was requested for a backend that was disabled at build time.