Files
edx-platform/openedx/core/lib/exceptions.py
2016-06-02 11:33:39 +05:00

26 lines
424 B
Python

"""
Common Purpose Errors
"""
from django.core.exceptions import ObjectDoesNotExist
class CourseNotFoundError(ObjectDoesNotExist):
"""
Course was not found.
"""
pass
class PageNotFoundError(ObjectDoesNotExist):
"""
Page was not found. Used for paginated endpoint.
"""
pass
class DiscussionNotFoundError(ObjectDoesNotExist):
"""
Discussion Module was not found.
"""
pass