Source code for jgdv.structs.locator.errors

 1#!/usr/bin/env python3
 2"""
 3
 4
 5"""
 6# Imports:
 7from __future__ import annotations
 8
 9from jgdv.structs.strang.errors import StrangError
10
11# ##-- types
12# isort: off
13import abc
14import collections.abc
15from typing import TYPE_CHECKING, Generic, cast, assert_type, assert_never
16# Protocols:
17from typing import Protocol, runtime_checkable
18# Typing Decorators:
19from typing import no_type_check, final, override, overload
20
21if TYPE_CHECKING:
22   from jgdv import Maybe
23   from typing import Final
24   from typing import ClassVar, Any, LiteralString
25   from typing import Never, Self, Literal
26   from typing import TypeGuard
27   from collections.abc import Iterable, Iterator, Callable, Generator
28   from collections.abc import Sequence, Mapping, MutableMapping, Hashable
29
30# isort: on
31# ##-- end types
32
33# Vars:
34
35# Body:
36
[docs] 37class LocationError(StrangError): 38 """ A Task tried to access a location that didn't existing """ 39 general_msg = "Location Error:"
40
[docs] 41class LocationExpansionError(LocationError): 42 """ When trying to resolve a location, something went wrong. """ 43 general_msg = "Expansion of Location hit max value:"
44
[docs] 45class DirAbsent(LocationError): 46 """ In the course of startup verification, a directory was not found """ 47 general_msg = "Missing Directory:"