Skip to content

Exception classes Documentation

Exceptions

RequestError

RequestError(errors: Union[str, List[str]])

Bases: Exception

Raised when there is an error in the request response.

Source code in AniLinkPy/exceptions.py
7
8
9
def __init__(self, errors: Union[str, List[str]]) -> None:
    self.errors = errors
    super().__init__(f"Request Error: {self.errors}")

errors instance-attribute

errors = errors

UnsupportedMethodError

UnsupportedMethodError(method: str)

Bases: Exception

Raised when an unsupported method is provided to the send_request function.

Source code in AniLinkPy/exceptions.py
def __init__(self, method: str) -> None:
    self.method = method
    super().__init__(f"Unsupported method: {self.method}")

method instance-attribute

method = method