aio_taginfo.error

Error types.

 1"""Error types."""
 2
 3from dataclasses import dataclass
 4
 5import aiohttp
 6import pydantic
 7
 8
 9class TaginfoError(Exception):
10    """Base class for taginfo API errors."""
11
12
13@dataclass(kw_only=True, frozen=True)
14class TaginfoValueError(Exception):
15    """Failed to validate given parameters; did not call the taginfo API."""
16
17    cause: pydantic.ValidationError
18
19
20@dataclass(kw_only=True, frozen=True)
21class TaginfoCallError(Exception):
22    """Failed HTTP call to the taginfo API."""
23
24    cause: aiohttp.ClientError
25
26
27@dataclass(kw_only=True, frozen=True)
28class TaginfoValidationError(Exception):
29    """
30    Failed to validate the response of the taginfo API.
31
32    This should usually indicate a bug in this library.
33    """
34
35    cause: pydantic.ValidationError
36
37
38__docformat__ = "google"
class TaginfoError(builtins.Exception):
10class TaginfoError(Exception):
11    """Base class for taginfo API errors."""

Base class for taginfo API errors.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
args
@dataclass(kw_only=True, frozen=True)
class TaginfoValueError(builtins.Exception):
14@dataclass(kw_only=True, frozen=True)
15class TaginfoValueError(Exception):
16    """Failed to validate given parameters; did not call the taginfo API."""
17
18    cause: pydantic.ValidationError

Failed to validate given parameters; did not call the taginfo API.

TaginfoValueError(*, cause: pydantic_core._pydantic_core.ValidationError)
cause: pydantic_core._pydantic_core.ValidationError
Inherited Members
builtins.BaseException
with_traceback
args
@dataclass(kw_only=True, frozen=True)
class TaginfoCallError(builtins.Exception):
21@dataclass(kw_only=True, frozen=True)
22class TaginfoCallError(Exception):
23    """Failed HTTP call to the taginfo API."""
24
25    cause: aiohttp.ClientError

Failed HTTP call to the taginfo API.

TaginfoCallError(*, cause: aiohttp.client_exceptions.ClientError)
cause: aiohttp.client_exceptions.ClientError
Inherited Members
builtins.BaseException
with_traceback
args
@dataclass(kw_only=True, frozen=True)
class TaginfoValidationError(builtins.Exception):
28@dataclass(kw_only=True, frozen=True)
29class TaginfoValidationError(Exception):
30    """
31    Failed to validate the response of the taginfo API.
32
33    This should usually indicate a bug in this library.
34    """
35
36    cause: pydantic.ValidationError

Failed to validate the response of the taginfo API.

This should usually indicate a bug in this library.

TaginfoValidationError(*, cause: pydantic_core._pydantic_core.ValidationError)
cause: pydantic_core._pydantic_core.ValidationError
Inherited Members
builtins.BaseException
with_traceback
args