Ignore:
Timestamp:
01/24/13 15:07:56 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Check the sink channel cardinality and link duplication when adding a new link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/scheme/errors.py

    r11101 r11275  
    11""" 
    22Scheme Errors 
     3============= 
     4 
    35""" 
    46 
    57 
    68class SchemeTopologyError(Exception): 
     9    """ 
     10    A general scheme topology error. 
     11    """ 
    712    pass 
    813 
    914 
    1015class SchemeCycleError(SchemeTopologyError): 
     16    """ 
     17    A link would create a cycle in the scheme. 
     18    """ 
    1119    pass 
    1220 
    1321 
     22class SinkChannelError(SchemeTopologyError): 
     23    """ 
     24    Sink channel already connected. 
     25    """ 
     26 
     27 
     28class DuplicatedLinkError(SchemeTopologyError): 
     29    """ 
     30    A link duplicates another link already present in the scheme. 
     31    """ 
     32 
     33 
    1434class IncompatibleChannelTypeError(TypeError): 
    15     pass 
     35    """ 
     36    Source and sink channels do not have compatible types 
     37    """ 
Note: See TracChangeset for help on using the changeset viewer.