Skip to content

API Reference

APIRequestTimeoutError

Bases: EnkaAPIError

Raised when an API request times out.

AlgoScrewedUpMassivelyError

Bases: EnkaAPIError

Raised when something goes wrong on the server side.

AssetDownloadError

Bases: EnkaPyError

Raised when an asset fail to download.

AssetKeyError

Bases: EnkaPyError, KeyError

Raised when the asset key is not found.

EnkaAPIError

Bases: Exception

Base exception class for Enka API.

EnkaPyError

Bases: Exception

Base exception class for enka.py.

GameMaintenanceError

Bases: EnkaAPIError

Raised when the game is under maintenance.

GatewayTimeoutError

Bases: EnkaAPIError

Raised when a gateway timeout occurs.

GeneralServerError

Bases: EnkaAPIError

Raised when a general server error occurs.

InvalidItemTypeError

Bases: EnkaPyError

Raised when the item type is invalid.

PlayerDoesNotExistError

Bases: EnkaAPIError

Raised when the player does not exist.

RateLimitedError

Bases: EnkaAPIError

Raised when the API rate limit is exceeded.

WrongUIDFormatError

Bases: EnkaAPIError

Raised when the UID format is incorrect.

raise_for_retcode(retcode)

Raises an exception based on the retcode.