interaction.exception.slave¶
SlaveErrorCode¶
SlaveResponseException¶
SlaveSuccess¶
SlaveSystemShuttingDown¶
SlaveChannelNotFound¶
SlaveChannelInvalid¶
SlaveMasterTokenNotFound¶
SlaveMasterTokenInvalid¶
SlaveSelfTokenNotFound¶
SlaveSelfTokenInvalid¶
SlaveSlaveAlreadyConnected¶
SlaveSlaveNotConnected¶
SlaveSlaveConnectionRefused¶
SlaveSlaveDisconnectionRefused¶
SlaveTaskAlreadyExist¶
SlaveTaskRefused¶
get_slave_exception_class_by_error_code¶
- ding.interaction.exception.slave.get_slave_exception_class_by_error_code(error_code: ding.interaction.exception.slave.SlaveErrorCode) → Type[ding.interaction.exception.slave.SlaveResponseException][source]¶
- Overview:
Transform from slave error code to SlaveResponseException class
- Arguments:
error_code (
SlaveErrorCode): Slave error code
- Returns:
exception_class (
Type[SlaveResponseException): Slave response exception class
get_slave_exception_by_error¶
- ding.interaction.exception.slave.get_slave_exception_by_error(error: requests.exceptions.HTTPError) → ding.interaction.exception.slave.SlaveResponseException[source]¶
- Overview:
Auto transform http error object to slave response exception object.
- Arguments:
error (
HTTPError): Http error object
- Returns:
exception (
SlaveResponseException): Slave response exception object