Updated on 2024-07-30 GMT+08:00

Obtaining an Error Message

getErrorMessage

API Description

This API is used to obtain an error message using an error code.

Method Definition

1
- (NSString *)getErrorMessage:(NSUInteger)code;

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

code

NSUInteger

Error code.

Return Values

Table 2 Parameter description

Type

Description

NSString *

Error message.

Sample Code
1
2
3
- (void)setError:(NSError *)error {
    NSString *errorTips = [[HWMBizSdk getBizOpenApi] getErrorMessage:error.code];
}