Add support for new various endpoints. Add ResourceNotFound error in bfxapi/rest/exceptions.py. Fix bug in BfxRestInterface.__GET method.

This commit is contained in:
Davide Casale
2022-12-09 16:16:15 +01:00
parent e0785f9f4a
commit cd5ef42118
4 changed files with 143 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
__all__ = [
"RequestParametersError"
"RequestParametersError",
"ResourceNotFound"
]
class BfxRestException(Exception):
@@ -14,4 +15,11 @@ class RequestParametersError(BfxRestException):
This error indicates that there are some invalid parameters sent along with an HTTP request.
"""
pass
class ResourceNotFound(BfxRestException):
"""
This error indicates a failed HTTP request to a non-existent resource.
"""
pass