18 lines
381 B
Python
18 lines
381 B
Python
""" 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
|