exceptions.py 381 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
""" Errors used by the Discussion API. """
from django.core.exceptions import ObjectDoesNotExist


class DiscussionDisabledError(ObjectDoesNotExist):
    """ Discussion is disabled. """
    pass


class ThreadNotFoundError(ObjectDoesNotExist):
    """ Thread was not found. """
    pass


class CommentNotFoundError(ObjectDoesNotExist):
    """ Comment was not found. """
    pass