Help Center/
Meeting/
Client SDK Reference/
Android SDK/
API Reference/
UI Customization/
Obtaining an Error Message
Updated on 2024-07-30 GMT+08:00
Obtaining an Error Message
This API is used to obtain an error message.
Precautions
None
Method Definition
String getErrorMessage(int errCode);
Sample Code
public static void showToast(String apiName, int retCode, String desc) { String msg = HWMBizSdk.getBizOpenApi().getErrorMessage(retCode); if (TextUtils.isEmpty(msg)) { Log.i(TAG, "showToast msg == null!"); } String errorMsg = msg + "\n" + "Error code: " + retCode + "\n" + "Error description: " + desc; BaseDialogBuilder baseDialogBuilder = new BaseDialogBuilder(DemoActivity.getInstance()); baseDialogBuilder .setMessage(errorMsg) .addAction("OK", (dialog, button, index) -> { dialog.dismiss(); }) .show(); }
Parent topic: UI Customization
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot