Added seperate exceptions file

This commit is contained in:
Jake Howard 2015-09-28 21:13:31 +01:00
parent 0baaaf6084
commit 33b3db6dce
2 changed files with 6 additions and 4 deletions

5
printr/exceptions.py Normal file
View 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)

View file

@ -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():