From c8b99e5233c7c147d06e6a081a84c8af17457dbc Mon Sep 17 00:00:00 2001 From: Hugo Gomes Date: Tue, 26 Dec 2023 12:22:14 +0000 Subject: [PATCH] feat: add src/netius/base/errors.pyi --- src/netius/base/errors.pyi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/netius/base/errors.pyi 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): ...