Added seperate exceptions file
This commit is contained in:
parent
0baaaf6084
commit
33b3db6dce
2 changed files with 6 additions and 4 deletions
5
printr/exceptions.py
Normal file
5
printr/exceptions.py
Normal file
|
@ -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)
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
class FormattingException(Exception):
|
from exceptions import FormattingError
|
||||||
message = "Provided string doesn't contain formatting placeholders for {c} and/or {m}"
|
|
||||||
def __init__(self):
|
|
||||||
super().__init__(self.message)
|
|
||||||
|
|
||||||
|
|
||||||
class ItterPrintr():
|
class ItterPrintr():
|
||||||
|
|
Reference in a new issue