| CLASS info |
| public class ApiException extends Exception |
| Exception returned when the HMS SDK call fails. |
| Constructor name |
| ApiException(Status status) Create an ApiException from status information. |
| Return type | Method name |
| int | getStatusCode() |
| String | getStatusMessage() |
| constructor |
ApiException(Status status) |
| Create an ApiException from status information. |
Parameters
| Parameter name | Parameter desc |
| status | Status instance containing the status code and description. |
| Method |
public int getStatusCode() |
| Obtains the status code. |
Return
| type | desc |
| int | Status information. For details about the status code values, see the Status API. |
| Method |
public String getStatusMessage() |
| Obtains the status description. |
Return
| type | desc |
| String | Status description. |