MA-2318: get DiscussionTopic against topic id

This commit is contained in:
wajeeha-khalid
2016-05-12 17:27:35 +05:00
parent a07a762f73
commit 3c0502726c
7 changed files with 305 additions and 59 deletions

View File

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