Agent: Add 4 IslandAPIErrors

This commit is contained in:
vakarisz 2022-09-16 17:39:46 +03:00
parent 4e1ca659a9
commit 0b0f039474
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
class IslandAPIError(Exception):
"""
Raised when something goes wrong when calling the Island API
"""
pass
class IslandAPITimeoutError(IslandAPIError):
"""
Raised when the API request hits a timeout
"""
pass
class IslandAPIConnectionError(IslandAPIError):
"""
Raised when the API request can't find/connect to the Island
"""
pass
class IslandAPIRequestFailedError(IslandAPIError):
"""
Raised when the API request fails(malformed request or an error on the API side)
"""
pass