Skip to content

testudos.internal.types.exceptions

testudos.internal.types.exceptions

Custom exception types for the Testudos SDK.

Do not use plain RuntimeError. All SDK errors are subclasses of TestudosError.

TestudosError Objects

class TestudosError(Exception)

Base exception for all Testudos SDK errors.

RpcError Objects

class RpcError(TestudosError)

Raised when the RPC response contains an ‘error’ from the backend.

TransportError Objects

class TransportError(TestudosError)

Raised on connection or transport failure.

Use for connection failures (e.g. engine not running, connection refused), send/recv errors, or connection closed by peer. Message includes host:port when raised from connect().

ObjectNotFoundError Objects

class ObjectNotFoundError(TestudosError)

Raised when an object is not found when required.

TestudosTimeoutError Objects

class TestudosTimeoutError(TestudosError)

Raised when wait_for_object times out.

Named TestudosTimeoutError to avoid shadowing the built-in TimeoutError.