Source code for CAOS.exceptions.dispatch_errors
"""Errors that occur while dispatching the mechanism or type."""
from __future__ import print_function, division, unicode_literals
[docs]class DispatchException(Exception):
"""Generic error raised when some problem occurs during dispatch."""
pass
[docs]class ExistingReactionError(DispatchException):
"""A mechanism with this name has already been registered."""
pass
[docs]class InvalidReactionError(DispatchException):
"""The reaction being registered is invalid in some way."""
pass