exceptions.py 424 Bytes
Newer Older
1 2 3
"""
Common Purpose Errors
"""
4 5 6 7
from django.core.exceptions import ObjectDoesNotExist


class CourseNotFoundError(ObjectDoesNotExist):
8 9 10
    """
    Course was not found.
    """
11 12 13 14
    pass


class PageNotFoundError(ObjectDoesNotExist):
15 16 17 18 19 20 21 22 23 24
    """
    Page was not found. Used for paginated endpoint.
    """
    pass


class DiscussionNotFoundError(ObjectDoesNotExist):
    """
    Discussion Module was not found.
    """
25
    pass