ECOM-248 Course Info API. Basic functionality implemented. ECOM-248 adding factory for about descriptor and test cases for course info api ECOM-248 adding test cases for couse info api. ECOM-248 re-factoring code. updating test cases. Tests for course_about data module ECOM-248 Adding test cases for the exceptions. ECOM-248 re-factoring code. fixing quality issues. ECOM-248 fixing test cases and moved parse video method into utils. added github username in authors ECOM-248 removed merging issue of test_data ECOM-248 removed unused files
24 lines
520 B
Python
24 lines
520 B
Python
"""
|
|
Contains all the errors associated with the Course About API.
|
|
|
|
"""
|
|
|
|
|
|
class CourseAboutError(Exception):
|
|
"""Generic Course About Error"""
|
|
|
|
def __init__(self, msg, data=None):
|
|
super(CourseAboutError, self).__init__(msg)
|
|
# Corresponding information to help resolve the error.
|
|
self.data = data
|
|
|
|
|
|
class CourseAboutApiLoadError(CourseAboutError):
|
|
"""The data API could not be loaded. """
|
|
pass
|
|
|
|
|
|
class CourseNotFoundError(CourseAboutError):
|
|
"""The Course Not Found. """
|
|
pass
|