* INCR-108: Run python-modernize on openedx/core/lib * Fixed urlencode import * Fixed diff quality warnings and six.string_types error * Fixed pickle import * Fixed iteritems import * Fixed ungrouped imports * Fixed six.moves import issues
27 lines
463 B
Python
27 lines
463 B
Python
"""
|
|
Common Purpose Errors
|
|
"""
|
|
from __future__ import absolute_import
|
|
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
|