mirror of
https://github.com/onyx-and-iris/simple-recorder.git
synced 2025-06-27 18:00:23 +01:00
add custom error class. this allows us to fetch the raw message before it's been coloured.
This commit is contained in:
parent
04b4e5521a
commit
76815926e9
11
src/simple_recorder/errors.py
Normal file
11
src/simple_recorder/errors.py
Normal 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
|
Loading…
x
Reference in New Issue
Block a user