Source code for timApp.document.exceptions

[docs]class DocExistsError(Exception): def __init__(self, doc_id): self.doc_id = doc_id def __str__(self): return f"Document already exists: {self.doc_id}"
[docs]class ValidationException(Exception): pass
[docs]class ValidationWarning(ValidationException): pass
[docs]class AttributesAtEndOfCodeBlockException(ValidationException): pass