dashboard/backend/helpers/exceptions.py

9 lines
318 B
Python
Raw Normal View History

2022-10-21 12:44:04 +02:00
"""Custom exception handler to raise consistent exceptions, as different backend
raise different exceptions"""
class BackendError(Exception):
"""The backend error is raised when interacting with
the backend fails or gives an unexpected result. The
error contains a oneliner description of the problem"""