hubvault.remote.errors

Error types for hubvault.remote.

The remote client keeps its own exception hierarchy so callers do not need to depend on the concrete HTTP transport implementation.

HubVaultRemoteError

class hubvault.remote.errors.HubVaultRemoteError[source]

Base error for remote-client failures.

Remote operations surface this hierarchy instead of leaking concrete HTTP client exceptions back to callers.

Example:

>>> str(HubVaultRemoteError("boom"))
'boom'

HubVaultRemoteTransportError

class hubvault.remote.errors.HubVaultRemoteTransportError[source]

Raised when the remote transport cannot complete a request.

Example:

>>> str(HubVaultRemoteTransportError("offline"))
'offline'

HubVaultRemoteProtocolError

class hubvault.remote.errors.HubVaultRemoteProtocolError[source]

Raised when the remote server returns an invalid or unsupported payload.

Example:

>>> str(HubVaultRemoteProtocolError("bad json"))
'bad json'

HubVaultRemoteAuthError

class hubvault.remote.errors.HubVaultRemoteAuthError[source]

Raised when the remote server rejects authentication or permissions.

Example:

>>> str(HubVaultRemoteAuthError("forbidden"))
'forbidden'