Files
edx-platform/openedx/core/lib/exceptions.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

27 lines
425 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