Files
mayan-edms/mayan/apps/checkouts/exceptions.py
2014-11-04 17:37:22 -04:00

17 lines
393 B
Python

from django.utils.translation import ugettext
class DocumentNotCheckedOut(Exception):
"""
Raised when trying to checkin a document that is not checkedout
"""
pass
class DocumentAlreadyCheckedOut(Exception):
"""
Raised when trying to checkout an already checkedout document
"""
def __unicode__(self):
return ugettext('Document already checked out.')