Add custom LTI exception.

This commit is contained in:
Alexander Kryklia
2013-09-09 18:41:48 +03:00
parent 86dbb1fe3f
commit ef4b7b9b1d
2 changed files with 9 additions and 0 deletions

View File

@@ -31,3 +31,11 @@ class SerializationError(Exception):
def __init__(self, location, msg):
super(SerializationError, self).__init__(msg)
self.location = location
class LTIError(Exception):
"""
An error occured when parsing LTI paramaters from
course settings or LTI unit
"""
pass

View File

@@ -14,6 +14,7 @@ import urllib
from xmodule.editing_module import MetadataOnlyEditingDescriptor
from xmodule.x_module import XModule
from xmodule.exceptions import LTIError
from xmodule.course_module import CourseDescriptor
from pkg_resources import resource_string
from xblock.core import String, Scope, List