Source code for timApp.documentmodel.exceptions
[docs]class DocExistsError(Exception):
def __init__(self, doc_id):
self.doc_id = doc_id
def __str__(self):
return "Document already exists: {}".format(self.doc_id)
[docs]class DocExistsError(Exception):
def __init__(self, doc_id):
self.doc_id = doc_id
def __str__(self):
return "Document already exists: {}".format(self.doc_id)