ds_stoa.utils.exceptions

Module for handling exceptions.

This module provides a function to enrich HTTP exceptions with more context such as the request URL, status code, and response body. This additional context can be useful for debugging and logging errors that occur during HTTP requests.

Submodules

Functions

enrich_http_exception(→ None)

Enriches an HTTP exception with additional context without re-raising it.

Package Contents

ds_stoa.utils.exceptions.enrich_http_exception(exc: requests.exceptions.HTTPError) None[source]

Enriches an HTTP exception with additional context without re-raising it.

Parameters:

exc – Exception

Returns:

None