SDK
VaultError
The vault answered with an error envelope.
exception
Signature #
class VaultError(code: str, message: str, *, status: int, trace_id: str | None = None, request_id: str | None = None) Bases: DiagnosError
The vault answered with an error envelope.
Members #
code: str #
attribute
The vault's error code (`QuotaExceeded`, `DocumentNotFound`…) — branch on it, never on `message`.
message: str #
attribute
The vault's message, for a person.
status: int #
attribute
The HTTP status the vault answered with.
trace_id: str | None #
attribute
The vault's trace id — what a support ticket needs to find the event.
request_id: str | None #
attribute
The `X-Request-Id` of the failed response.