hubvault.server.exception_handlers

Exception handler registration for hubvault.server.

This module translates public hubvault exceptions into stable HTTP error payloads for the embedded FastAPI app.

The module contains:

register_exception_handlers

hubvault.server.exception_handlers.register_exception_handlers(app) None[source]

Attach hubvault-specific exception handlers to one FastAPI app.

Parameters:

app (fastapi.FastAPI) – FastAPI application receiving the handlers

Returns:

None.

Return type:

None

Raises:

hubvault.optional.MissingOptionalDependencyError – Raised when the API extra is not installed.