add custom error class. this allows us to fetch the raw message before it's been coloured.

This commit is contained in:
onyx-and-iris 2025-06-26 06:13:32 +01:00
parent 04b4e5521a
commit 76815926e9

View File

@ -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