diff --git a/src/simple_recorder/errors.py b/src/simple_recorder/errors.py new file mode 100644 index 0000000..a3e55b3 --- /dev/null +++ b/src/simple_recorder/errors.py @@ -0,0 +1,11 @@ +from clypi import ClypiException + +from .styler import error + + +class SimpleRecorderError(ClypiException): + """Base class for all SimpleRecorder exceptions.""" + + def __init__(self, message: str): + super().__init__(error(message)) + self.raw_message = message