Agent: Add IslandAPIRequestError for errors that are the client's mistake

This commit is contained in:
Shreya Malviya 2022-09-19 19:05:46 +05:30
parent 04e82de641
commit 1b037c4b3a
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,7 @@
from .island_api_client_errors import (
IslandAPIConnectionError,
IslandAPIError,
IslandAPIRequestError,
IslandAPIRequestFailedError,
IslandAPITimeoutError,
)

View File

@ -22,9 +22,17 @@ class IslandAPIConnectionError(IslandAPIError):
pass
class IslandAPIRequestFailedError(IslandAPIError):
class IslandAPIRequestError(IslandAPIError):
"""
Raised when the API request fails(malformed request or an error on the API side)
Raised when the API request fails due to an error in the request sent from the client
"""
pass
class IslandAPIRequestFailedError(IslandAPIError):
"""
Raised when the API request fails due to an error on the server
"""
pass