Package smach :: Module exceptions

Source Code for Module smach.exceptions

 1   
 2  import smach 
 3   
 4  __all__ = ['InvalidTransitionError', 
 5          'InvalidStateError', 
 6          'InvalidConstructionError', 
 7          'InvalidUserCodeError'] 
 8   
9 -class InvalidTransitionError():
10 - def __init__(self,message):
11 smach.logerr("InvalidTransitionError: "+message) 12 self.message = message
13
14 -class InvalidStateError():
15 - def __init__(self,message):
16 smach.logerr("InvalidStateError: "+message) 17 self.message = message
18
19 -class InvalidUserCodeError():
20 - def __init__(self,message):
21 smach.logerr("InvalidUserCodeError: "+message) 22 self.message = message
23
24 -class InvalidConstructionError():
25 - def __init__(self,message):
26 smach.logerr("InvalidConstructionError: "+message) 27 self.message = message
28