mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Add hierarchy logic to custom exceptions.
This commit is contained in:
18
bfxapi/exceptions.py
Normal file
18
bfxapi/exceptions.py
Normal file
@@ -0,0 +1,18 @@
|
||||
__all__ = [
|
||||
"BfxBaseException",
|
||||
"LabelerSerializerException"
|
||||
]
|
||||
|
||||
class BfxBaseException(Exception):
|
||||
"""
|
||||
Base class for every custom exception in bfxapi/rest/exceptions.py and bfxapi/websocket/exceptions.py.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
class LabelerSerializerException(BfxBaseException):
|
||||
"""
|
||||
This exception indicates an error thrown by the _Serializer class in bfxapi/labeler.py.
|
||||
"""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user