interaction.exception.master¶
MasterErrorCode¶
MasterResponseException¶
MasterSuccess¶
MasterSystemShuttingDown¶
MasterChannelNotGiven¶
MasterChannelInvalid¶
MasterMasterTokenNotGiven¶
MasterMasterTokenInvalid¶
MasterSelfTokenNotGiven¶
MasterSelfTokenInvalid¶
MasterSlaveTokenNotGiven¶
MasterSlaveTokenInvalid¶
MasterTaskDataInvalid¶
get_master_exception_class_by_error_code¶
- ding.interaction.exception.master.get_master_exception_class_by_error_code(error_code: ding.interaction.exception.master.MasterErrorCode) → Type[ding.interaction.exception.master.MasterResponseException][source]¶
- Overview:
Transform from master error code to MasterResponseException class
- Arguments:
error_code (
MasterErrorCode): Master error code
- Returns:
exception_class (
Type[MasterResponseException): Master response exception class
get_master_exception_by_error¶
- ding.interaction.exception.master.get_master_exception_by_error(error: requests.exceptions.HTTPError) → ding.interaction.exception.master.MasterResponseException[source]¶
- Overview:
Auto transform http error object to master response exception object.
- Arguments:
error (
HTTPError): Http error object
- Returns:
exception (
MasterResponseException): Master response exception object