Files
edx-platform/openedx/core/lib/exceptions.py

27 lines
574 B
Python

"""
Common Purpose Errors
"""
from django.core.exceptions import ObjectDoesNotExist
class CourseNotFoundError(ObjectDoesNotExist):
"""
Course was not found.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass
class PageNotFoundError(ObjectDoesNotExist):
"""
Page was not found. Used for paginated endpoint.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass
class DiscussionNotFoundError(ObjectDoesNotExist):
"""
Discussion Block was not found.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass