exceptions.py 432 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
"""
Exception classes used by Instructor tasks.
"""


class UpdateProblemModuleStateError(Exception):
    """
    Error signaling a fatal condition while updating problem modules.

    Used when the current module cannot be processed and no more
    modules should be attempted.
    """
    pass


class DuplicateTaskException(Exception):
    """Exception indicating that a task already exists or has already completed."""
    pass