Agent: Add IslandAPIRequestError for errors that are the client's mistake
This commit is contained in:
parent
04e82de641
commit
1b037c4b3a
|
@ -1,6 +1,7 @@
|
|||
from .island_api_client_errors import (
|
||||
IslandAPIConnectionError,
|
||||
IslandAPIError,
|
||||
IslandAPIRequestError,
|
||||
IslandAPIRequestFailedError,
|
||||
IslandAPITimeoutError,
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue