interaction.exception.master

MasterErrorCode

MasterResponseException

class ding.interaction.exception.master.MasterResponseException(error: requests.exceptions.HTTPError)[source]
Overview:

Response exception for master client

__init__(error: requests.exceptions.HTTPError)[source]
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSuccess

class ding.interaction.exception.master.MasterSuccess(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSystemShuttingDown

class ding.interaction.exception.master.MasterSystemShuttingDown(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterChannelNotGiven

class ding.interaction.exception.master.MasterChannelNotGiven(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterChannelInvalid

class ding.interaction.exception.master.MasterChannelInvalid(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterMasterTokenNotGiven

class ding.interaction.exception.master.MasterMasterTokenNotGiven(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterMasterTokenInvalid

class ding.interaction.exception.master.MasterMasterTokenInvalid(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSelfTokenNotGiven

class ding.interaction.exception.master.MasterSelfTokenNotGiven(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSelfTokenInvalid

class ding.interaction.exception.master.MasterSelfTokenInvalid(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSlaveTokenNotGiven

class ding.interaction.exception.master.MasterSlaveTokenNotGiven(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterSlaveTokenInvalid

class ding.interaction.exception.master.MasterSlaveTokenInvalid(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

MasterTaskDataInvalid

class ding.interaction.exception.master.MasterTaskDataInvalid(error: requests.exceptions.HTTPError)[source]
__init__(error: requests.exceptions.HTTPError)
Overview:

Constructor

Arguments:
  • error (HTTPError): Original http exception object

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: