Source code for orangecanvas.scheme.errors

"""
Scheme Errors
=============

"""


class SchemeTopologyError(Exception):
    """
    A general scheme topology error.
    """
    pass


[docs]class SchemeCycleError(SchemeTopologyError): """ A link would create a cycle in the scheme. """ pass
[docs]class SinkChannelError(SchemeTopologyError): """ Sink channel already connected. """
[docs]class DuplicatedLinkError(SchemeTopologyError): """ A link duplicates another link already present in the scheme. """
[docs]class IncompatibleChannelTypeError(TypeError): """ Source and sink channels do not have compatible types """