maimai_py.exceptions
1class MaimaiPyError(Exception): 2 """Base exception class for all exceptions raised by maimai_py.""" 3 4 5class InvalidPlayerIdentifierError(MaimaiPyError): 6 """Player identifier is invalid for the provider. 7 8 For example, friend code is not applicable for Diving Fish provider, the username is not applicable for LXNS provider. 9 10 Also, if the player is not found on that provider, this exception will be raised. 11 """ 12 13 14class InvalidDeveloperTokenError(MaimaiPyError): 15 """Developer token is not provided or token is invalid.""" 16 17 18class InvalidPlateError(MaimaiPyError): 19 """Provided version or plate is invalid. 20 21 Plate should be formatted as two/three characters (version + kind), e.g. "桃将", "舞舞舞" 22 23 The following versions are valid: 24 25 霸, 舞, 初, 真, 超, 檄, 橙, 晓, 桃, 樱, 紫, 堇, 白, 雪, 辉, 熊, 华, 爽, 煌, 星, 宙, 祭, 祝, 双, 宴. 26 27 The following kinds are valid: 28 29 将, 者, 極, 极, 舞舞, 神 30 31 """ 32 33 34class PrivacyLimitationError(MaimaiPyError): 35 """The user has not accepted the privacy policy or exceeded the privacy limit of the provider.""" 36 37 38class WechatTokenExpiredError(MaimaiPyError): 39 """Wahlap Wechat OffiAccount token is expired.""" 40 41 42class ArcadeError(MaimaiPyError): 43 """Base exception class for all exceptions raised by maimai arcade.""" 44 45 46class AimeServerError(ArcadeError): 47 """Base exception class for all exceptions raised by maimai aime server.""" 48 49 50class TitleServerError(ArcadeError): 51 """Base exception class for all exceptions raised by maimai title server."""
2class MaimaiPyError(Exception): 3 """Base exception class for all exceptions raised by maimai_py."""
Base exception class for all exceptions raised by maimai_py.
6class InvalidPlayerIdentifierError(MaimaiPyError): 7 """Player identifier is invalid for the provider. 8 9 For example, friend code is not applicable for Diving Fish provider, the username is not applicable for LXNS provider. 10 11 Also, if the player is not found on that provider, this exception will be raised. 12 """
Player identifier is invalid for the provider.
For example, friend code is not applicable for Diving Fish provider, the username is not applicable for LXNS provider.
Also, if the player is not found on that provider, this exception will be raised.
15class InvalidDeveloperTokenError(MaimaiPyError): 16 """Developer token is not provided or token is invalid."""
Developer token is not provided or token is invalid.
19class InvalidPlateError(MaimaiPyError): 20 """Provided version or plate is invalid. 21 22 Plate should be formatted as two/three characters (version + kind), e.g. "桃将", "舞舞舞" 23 24 The following versions are valid: 25 26 霸, 舞, 初, 真, 超, 檄, 橙, 晓, 桃, 樱, 紫, 堇, 白, 雪, 辉, 熊, 华, 爽, 煌, 星, 宙, 祭, 祝, 双, 宴. 27 28 The following kinds are valid: 29 30 将, 者, 極, 极, 舞舞, 神 31 32 """
Provided version or plate is invalid.
Plate should be formatted as two/three characters (version + kind), e.g. "桃将", "舞舞舞"
The following versions are valid:
霸, 舞, 初, 真, 超, 檄, 橙, 晓, 桃, 樱, 紫, 堇, 白, 雪, 辉, 熊, 华, 爽, 煌, 星, 宙, 祭, 祝, 双, 宴.
The following kinds are valid:
将, 者, 極, 极, 舞舞, 神
35class PrivacyLimitationError(MaimaiPyError): 36 """The user has not accepted the privacy policy or exceeded the privacy limit of the provider."""
The user has not accepted the privacy policy or exceeded the privacy limit of the provider.
39class WechatTokenExpiredError(MaimaiPyError): 40 """Wahlap Wechat OffiAccount token is expired."""
Wahlap Wechat OffiAccount token is expired.
43class ArcadeError(MaimaiPyError): 44 """Base exception class for all exceptions raised by maimai arcade."""
Base exception class for all exceptions raised by maimai arcade.
47class AimeServerError(ArcadeError): 48 """Base exception class for all exceptions raised by maimai aime server."""
Base exception class for all exceptions raised by maimai aime server.
51class TitleServerError(ArcadeError): 52 """Base exception class for all exceptions raised by maimai title server."""
Base exception class for all exceptions raised by maimai title server.