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):
Base class for taginfo API errors.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- args
@dataclass(kw_only=True, frozen=True)
class
TaginfoValueError14@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.
Inherited Members
- builtins.BaseException
- with_traceback
- args
@dataclass(kw_only=True, frozen=True)
class
TaginfoCallError21@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.
Inherited Members
- builtins.BaseException
- with_traceback
- args
@dataclass(kw_only=True, frozen=True)
class
TaginfoValidationError28@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.
Inherited Members
- builtins.BaseException
- with_traceback
- args