Error Mapping

Utilities for mapping chip error codes to meaningful error messages.

Error code to exception mapping for TropicSquare

tropicsquare.error_mapping.map_cmd_result_to_exception(cmd_result)[source]

Map command result code to appropriate exception

tropicsquare.error_mapping.map_response_status_to_exception(rsp_status)[source]

Map response status code to appropriate exception

tropicsquare.error_mapping.raise_for_cmd_result(cmd_result)[source]

Raise exception if command result indicates error

tropicsquare.error_mapping.raise_for_response_status(rsp_status)[source]

Raise exception if response status indicates error

See Also