EnkaNetwork.py/enkanetwork/exception.py
Dee Dev 3ec03d9b06 Upgrade EnkaNetwork.py
- add http client
- update example

- add aenter, aexit for auto close client
2022-08-04 20:56:23 +07:00

20 lines
520 B
Python

class VaildateUIDError(Exception):
""" Raised when the UID is not valid. """
pass
class UIDNotFounded(Exception):
""" Raised when the UID is not found. """
pass
class HTTPException(Exception):
""" Exception that's raised when an HTTP request operation fails. """
pass
class Forbidden(HTTPException):
""" Exception that's raised for when status code 403 occurs."""
pass
class EnkaServerError(HTTPException):
""" Exception that's raised for when status code 500 occurs."""
pass