Errors

varvis_connector custom error classes module

Copyright (C) 2026 Labor Berlin – Charité Vivantes GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

author:

Markus Konrad <markus.konrad@laborberlin.com>

exception varvis_connector.errors.VarvisError[source]

Bases: Exception

Base class for all Varvis-API-related errors.

exception varvis_connector.errors.VarvisTransportError(failure_kind, attempts)[source]

Bases: VarvisError

Raised when a request cannot reach the Varvis API.

Parameters:
  • failure_kind (str)

  • attempts (int)

Return type:

None

exception varvis_connector.errors.VarvisTimeoutError(failure_kind, attempts)[source]

Bases: VarvisTransportError

Raised when a request to the Varvis API times out.

Parameters:
  • failure_kind (str)

  • attempts (int)

Return type:

None