diff --git a/printr/exceptions.py b/printr/exceptions.py new file mode 100644 index 0000000..cca1126 --- /dev/null +++ b/printr/exceptions.py @@ -0,0 +1,5 @@ +class FormattingError(Exception): + message = "Provided string doesn't contain formatting placeholders for {c} and/or {m}" + def __init__(self): + super().__init__(self.message) + diff --git a/printr/itterPrintr.py b/printr/itterPrintr.py index c179eb5..08de82a 100644 --- a/printr/itterPrintr.py +++ b/printr/itterPrintr.py @@ -1,7 +1,4 @@ -class FormattingException(Exception): - message = "Provided string doesn't contain formatting placeholders for {c} and/or {m}" - def __init__(self): - super().__init__(self.message) +from exceptions import FormattingError class ItterPrintr():