Error code interface

mini.apis.errors.get_common_error_str(error_code: int) str[source]

Map general error codes to error descriptions

Parameters

error_code (int) – Error code, in COMMON, otherwise it returns “unknown error”

Returns

error description

Return type

str

mini.apis.errors.get_speech_error_str(error_code: int) str[source]

Map voice-related error codes to error descriptions

Parameters

error_code (int) – Error code, in SPEECH, otherwise it returns None

Returns

error description

Return type

str

mini.apis.errors.get_content_error_str(error_code: int) str[source]

Map content broadcast related error codes to error descriptions

Parameters

error_code (int) – Error code, in CONTENT, otherwise it returns None

Returns

error description

Return type

str

mini.apis.errors.get_vision_error_str(error_code: int) str[source]

Map error codes related to detection to error descriptions

Parameters

error_code (int) – Error code, in VISION, otherwise it returns None

Returns

error description

Return type

str

mini.apis.errors.get_motion_error_str(error_code: int) str[source]

Map motion control related error codes to error descriptions

Parameters

error_code (int) – Error code, in MOTION, otherwise it returns None

Returns

error description

Return type

str

mini.apis.errors.get_express_error_str(error_code: int) str[source]

Mapping expression-related error codes to error descriptions

Parameters

error_code (int) – Error code, in EXPRESS, otherwise it returns None

Returns

error description

Return type

str