Home | Trees | Indices | Help |
---|
|
1 #!/usr/bin/env python 2 # 3 # License: BSD 4 # https://raw.github.com/robotics-in-concert/rocon_multimaster/master/rocon_hub_client/LICENSE 5 # 6 7 ''' 8 Core exceptions raised when interacting with a rocon hub. 9 ''' 10 ############################################################################## 11 # Imports 12 ############################################################################## 13 14 from gateway_msgs.msg import ErrorCodes 15 16 ############################################################################## 17 # Exceptions 18 ############################################################################## 19 20 25 26 27 # Raised when the gateway can't connect to the hub's redis server 32 33 34 # Raised when the hub's redis server has no key setting for the hub name. 39 40 41 # When the hub name or uri is in the blacklist46 47 48 # When the hub name or uri is not in a non-empty whitelist44 super(HubConnectionBlacklistedError, self).__init__(msg) 45 self.id = ErrorCodes.HUB_CONNECTION_BLACKLISTED53 54 55 # When the hub name or uri is not in a non-empty whitelist51 super(HubConnectionNotWhitelistedError, self).__init__(msg) 52 self.id = ErrorCodes.HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST60 61 62 # Raised when a hub client tries an operation on a hub that has lost its 63 # connection58 super(HubConnectionAlreadyExistsError, self).__init__(msg) 59 self.id = ErrorCodes.HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST6866 super(HubConnectionLostError, self).__init__(msg) 67 self.id = ErrorCodes.HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Aug 26 15:54:17 2015 | http://epydoc.sourceforge.net |