API Reference
errors
Classes:
-
AlgoScrewedUpMassivelyError–Raised when something goes wrong on the server side.
-
AssetDownloadError–Raised when an asset fail to download.
-
EnkaAPIError–Base exception class for Enka API.
-
EnkaPyError–Base exception class for enka.py.
-
GameMaintenanceError–Raised when the game is under maintenance.
-
GatewayTimeoutError–Raised when Enka or the game servers time out, the request can be retried.
-
GeneralServerError–Raised when a general server error occurs.
-
InvalidItemTypeError–Raised when the item type is invalid.
-
PlayerDoesNotExistError–Raised when the player does not exist.
-
ProfileUnavailableError–Raised when the player exists, but the game doesn't return their profile.
-
RateLimitedError–Raised when the API rate limit is exceeded.
-
WrongUIDFormatError–Raised when the UID format is incorrect.
Functions:
-
raise_for_retcode–Raises an exception based on the retcode and the error code.
APIRequestTimeoutError
Raised when an API request times out.
AlgoScrewedUpMassivelyError
Raised when something goes wrong on the server side.
AssetDownloadError
AssetKeyError
EnkaAPIError
EnkaPyError
Base exception class for enka.py.
GameMaintenanceError
Raised when the game is under maintenance.
GatewayTimeoutError
Raised when Enka or the game servers time out, the request can be retried.
GeneralServerError
Raised when a general server error occurs.
InvalidItemTypeError
Raised when the item type is invalid.
PlayerDoesNotExistError
Raised when the player does not exist.
ProfileUnavailableError
Raised when the player exists, but the game doesn't return their profile.
RateLimitedError
Raised when the API rate limit is exceeded.
WrongUIDFormatError
Raised when the UID format is incorrect.