目录

1.Service exception

Description                    Value                    Definition                    Suggestion                   
INTERNAL_ERROR             10000                        Internal error.          Contact Huawei technical support.
ARGUMENTS_EMPTY    10100                        The input parameter is empty.    Check the mandatory parameters.
ARGUMENTS_INVALID  10101                        Incorrect input parameter. Check whether the parameter is correct.
PERMISSION_DENIED   10102               Insufficient permission.      Check whether HMS Core (APK) is assigned with the location permission.
NOT_IN_MOCK_MODE  10103                        The mock mode is disabled.

Set setMockMode(true) first.

NO_MATCHED_CALLBACK  10104                        No matching callback.

Check whether the correct callback parameter is included in the list of parameters.

NETWORK_LOCATION_SERVICES_DISABLED  

10105                        

Network location service unavailable.

Enable the network location service on the location service page.

NO_MATCHED_INTENT10108No matching pendingintent.Use the pendingintent of the same constructor as that of the previous request.
GEOFENCE_UNAVAILABLE

10200

The geofence service is unavailable.

The mobile phone cannot connect to the underlying service temporarily and can retry.

GEOFENCE_NUMBER_OVER_LIMIT

10201                        

The number of added geofences has reached the maximum.

Do not add more than 100 geofences for an app.

GEOFENCE_PENDINGINTENT_OVER_LIMIT10202                        Do not add more than 5 PendingIntents in the code.

Reuse existing PendingIntents.

GEOFENCE_INSUFFICIENT_PERMISSION10204                        Insufficient permission to perform geofence-related operations.

Check whether the Manifest file contains the specified permissions based on the client development chapter.

GEOFENCE_REQUEST_TOO_OFTEN 10205                        Geofences are added too frequently.

Please try again later.

ENABLE_CONVERSION_EVENT_FAILE

10300

Failed to register the activity conversion event.

Verify that the event is valid. If a valid event fails to be registered, contact the technical support.

ACTIVITY_IDENTIFICATION_NOT_AVAILABLE

10301

Currently, the activity identification service is unavailable.

Use the activity identification service on a device supporting the service.


2.SDK exception

Description                    Value                    Definition                    Suggestion                  
PARAM_ERROR_EMPTY  10801                        The mandatory parameter is empty.          

Check the mandatory parameters.

PARAM_ERROR_INVALID   10802                        Incorrect parameter.        

Check whether the parameter is correct.

PERMISSION_DENIED        10803                        Insufficient permission.    

Check whether the Manifest file contains the specified permissions based on the client development .chapter.

NO_MATCHED_CALLBACK 10804                        No matching callback.      

Check whether the correct callback parameter is included in the list of parameters.

NO_MATCHED_INTENT      10805                        No matching intent.   

Check whether the correct intent parameter is included in the list of parameters.

NOT_YET_SUPPORTED        10806                        Reserved.                      

The API is currently unavailable.


For more result codes, please refer to the HMS SDK Framework Error.