diff --git a/src/netius/base/errors.pyi b/src/netius/base/errors.pyi new file mode 100644 index 00000000..689b2f12 --- /dev/null +++ b/src/netius/base/errors.pyi @@ -0,0 +1,22 @@ +from uuid import UUID +from typing import Any + +class NetiusError(Exception): + def __init__(self, *args, **kwargs) -> None: ... + def get_kwarg(self, name: str, default: Any | None = ...): ... + @property + def uid(self) -> UUID: ... + +class RuntimeError(NetiusError): ... +class StopError(RuntimeError): ... +class PauseError(RuntimeError): ... +class WakeupError(RuntimeError): ... +class DataError(RuntimeError): ... + +class ParserError(RuntimeError): + def __init__(self, *args, **kwargs) -> None: ... + +class GeneratorError(RuntimeError): ... +class SecurityError(RuntimeError): ... +class NotImplemented(RuntimeError): ... +class AssertionError(RuntimeError): ...