Commit 23d7f47a authored by LammLukas's avatar LammLukas

Exception for existing template

parent 603c6fb6
......@@ -29,3 +29,9 @@ class InsuffientCapacity(MiraculixError):
"""Exception if total room capacity is less then total number of participants"""
def __init__(self, message):
super(InsuffientCapacity, self).__init__(message)
class TemplateAlreadyExists(MiraculixError):
"""Exception if template already exists in database"""
def __init__(self, message):
super(TemplateAlreadyExists, self).__init__(message)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment