Commit d66905cc authored by LammLukas's avatar LammLukas

New Exceptions for database queries.

parent d7277200
......@@ -34,4 +34,16 @@ class InsuffientCapacity(MiraculixError):
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
super(TemplateAlreadyExists, self).__init__(message)
class TableDoesNotExist(MiraculixError):
"""Exception if table does not exist in database"""
def __init__(self, message):
super(TableDoesNotExist, self).__init__(message)
class TemplateDoesNotExist(MiraculixError):
"""Exception if template does not exist in database"""
def __init__(self, message):
super(TableDoesNotExist, 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