1#!/usr/bin/env python3
2"""
3These are the doot specific errors that can occur
4"""
5# Imports:
6from __future__ import annotations
7
8# ##-- stdlib imports
9import logging as logmod
10from typing import (TYPE_CHECKING, Any, Callable, ClassVar, Final, Generator,
11 Generic, Iterable, Iterator, Mapping, Match,
12 MutableMapping, Protocol, Sequence, Tuple, TypeAlias,
13 TypeGuard, TypeVar, cast, final, overload,
14 runtime_checkable)
15
16# ##-- end stdlib imports
17
18##-- logging
19logging = logmod.getLogger(__name__)
20##-- end logging
21
22# ##-- Generated Exports
23__all__ = ( # noqa: RUF022
24
25# -- Classes
26"GlobalStateMismatch", "InjectionError", "KeyAccessError", "KeyExpansionError",
27"LocationError", "StateError",
28
29)
30# ##-- end Generated Exports
31
32from ._base import DootError, BackendError
33
[docs]
34class StateError(BackendError):
35 pass
36
[docs]
37class KeyAccessError(StateError):
38 """ A failure occurred while accessing task state using a key. """
39 pass
40
[docs]
41class KeyExpansionError(StateError):
42 """ For failures to access, expand, or constraint state keys """
43 pass
44
[docs]
45class InjectionError(StateError):
46 pass
47
[docs]
48class LocationError(StateError):
49 pass
50
[docs]
51class GlobalStateMismatch(StateError):
52 pass