Files
mayan-edms/mayan/apps/checkouts/exceptions.py
2015-01-19 04:06:40 -04:00

19 lines
434 B
Python

from __future__ import unicode_literals
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.')