From dda9bdee551c8069dd0364c32ff1ffc57f1398d8 Mon Sep 17 00:00:00 2001 From: lx-dev Date: Wed, 22 Mar 2023 07:44:13 +0100 Subject: [PATCH] refactor(errors): moving errors to common --- src/astraeus_common/error/__init__.py | 0 src/astraeus_common/error/body_not_found.py | 2 ++ src/astraeus_common/error/sync_state_not_found.py | 2 ++ src/astraeus_common/error/system_not_found.py | 2 ++ 4 files changed, 6 insertions(+) create mode 100644 src/astraeus_common/error/__init__.py create mode 100644 src/astraeus_common/error/body_not_found.py create mode 100644 src/astraeus_common/error/sync_state_not_found.py create mode 100644 src/astraeus_common/error/system_not_found.py diff --git a/src/astraeus_common/error/__init__.py b/src/astraeus_common/error/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/astraeus_common/error/body_not_found.py b/src/astraeus_common/error/body_not_found.py new file mode 100644 index 0000000..c6c1692 --- /dev/null +++ b/src/astraeus_common/error/body_not_found.py @@ -0,0 +1,2 @@ +class BodyNotFound(Exception): + pass diff --git a/src/astraeus_common/error/sync_state_not_found.py b/src/astraeus_common/error/sync_state_not_found.py new file mode 100644 index 0000000..b555a28 --- /dev/null +++ b/src/astraeus_common/error/sync_state_not_found.py @@ -0,0 +1,2 @@ +class SyncStateNotFound(Exception): + pass diff --git a/src/astraeus_common/error/system_not_found.py b/src/astraeus_common/error/system_not_found.py new file mode 100644 index 0000000..72319c9 --- /dev/null +++ b/src/astraeus_common/error/system_not_found.py @@ -0,0 +1,2 @@ +class SystemNotFound(Exception): + pass