This functionality is activated by adding a SKU to a non-honor course mode. When the feature is activated, verified orders will be created by the E-Commerce Service instead of LMS. After payment, the E-Commerce Service will also create the enrollment.
22 lines
492 B
Python
22 lines
492 B
Python
""" E-Commerce-related exceptions. """
|
|
|
|
|
|
class ApiError(Exception):
|
|
""" Base class for E-Commerce API errors. """
|
|
pass
|
|
|
|
|
|
class InvalidConfigurationError(ApiError):
|
|
""" Exception raised when the API is not properly configured (e.g. settings are not set). """
|
|
pass
|
|
|
|
|
|
class InvalidResponseError(ApiError):
|
|
""" Exception raised when an API response is invalid. """
|
|
pass
|
|
|
|
|
|
class TimeoutError(ApiError):
|
|
""" Exception raised when an API requests times out. """
|
|
pass
|