Files
edx-platform/lms/djangoapps/discussion/rest_api/exceptions.py
Stu Young 13e624a50b INCR-307 Run python-modernize on lms/djangoapps/discussion/rest_api (#20618)
* run python modernize

* run isort

* Fix quality
2019-05-28 12:51:49 -04:00

20 lines
421 B
Python

""" Errors used by the Discussion API. """
from __future__ import absolute_import
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