Add hierarchy logic to custom exceptions.

This commit is contained in:
Davide Casale
2022-12-15 19:14:00 +01:00
parent c9f86d6d03
commit 24b105378a
3 changed files with 27 additions and 3 deletions

View File

@@ -1,12 +1,16 @@
from ..exceptions import BfxBaseException
__all__ = [
"BfxRestException",
"RequestParametersError",
"ResourceNotFound",
"InvalidAuthenticationCredentials"
]
class BfxRestException(Exception):
class BfxRestException(BfxBaseException):
"""
Base class for all exceptions defined in bfxapi/rest/exceptions.py.
Base class for all custom exceptions in bfxapi/rest/exceptions.py.
"""
pass