目录

CLASS info
public class ApiException extends Exception
Exception returned when the HMS SDK call fails.

Public Constructor Summary

Constructor name
ApiException(Status status)
Create an ApiException from status information.

Public Method Summary

Return typeMethod name
intgetStatusCode()
StringgetStatusMessage()

Public Constructor

constructor
ApiException(Status status)
Create an ApiException from status information.

Parameters

Parameter nameParameter desc
statusStatus instance containing the status code and description.

Public Methods

Method
public int getStatusCode()
Obtains the status code.

Return

typedesc
intStatus information. For details about the status code values, see the Status API.
Method
public String getStatusMessage()
Obtains the status description.

Return

typedesc
StringStatus description.