8 Core exceptions raised when interacting with a rocon hub. 14 from gateway_msgs.msg
import ErrorCodes
30 super(HubNotFoundError, self).
__init__(msg)
31 self.
id = ErrorCodes.HUB_CONNECTION_UNRESOLVABLE
37 super(HubNameNotFoundError, self).
__init__(msg)
38 self.
id = ErrorCodes.HUB_NAME_NOT_FOUND
44 super(HubConnectionBlacklistedError, self).
__init__(msg)
45 self.
id = ErrorCodes.HUB_CONNECTION_BLACKLISTED
51 super(HubConnectionNotWhitelistedError, self).
__init__(msg)
52 self.
id = ErrorCodes.HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST
58 super(HubConnectionAlreadyExistsError, self).
__init__(msg)
59 self.
id = ErrorCodes.HUB_CONNECTION_NOT_IN_NONEMPTY_WHITELIST
66 super(HubConnectionLostError, self).
__init__(msg)
67 self.
id = ErrorCodes.HUB_CONNECTION_LOST
72 super(HubConnectionFailedError, self).
__init__(msg)
73 self.
id = ErrorCodes.HUB_CONNECTION_FAILED