We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesSite KitAndroid SDKcom.huawei.hms.site.api.modelSearchStatus

SearchStatus

CLASS
public class SearchStatus
Represents an object indicating the API call error status.

Constructor

Construction Method
SearchStatus ()
SearchStatus(String errorCode, String errorMessage)

Public Method Summary

Return typeMethod name
StringgetErrorCode()
StringgetErrorMessage()
voidsetErrorCode(String errorCode)
voidsetErrorMessage(String errorMessage)

Public Methods

Method
public String getErrorCode()
Obtains a result code.

Parameters:
None.
Return:

Return typeParameter desc
StringResult code.
Method
public String getErrorMessage()
Obtains a result description.

Parameters:
None.
Return:

Return typeParameter desc
StringResult description.
Method
public void setErrorCode(String errorCode)
Sets a result code.

Parameters:

Parameter nameParameter desc
errorCodeResult code.


Return:
None.

Method
public void setErrorMessage(String errorMessage)
Sets a result description.

Parameters:

Parameter nameParameter desc
errorMessageResult description.


Return:
None.

This page may contain third-party content. For details, click here.