public class ApiException
extends java.lang.Exception
status
field returned in any of the Geo API responses.Modifier | Constructor and Description |
---|---|
protected |
ApiException(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
static ApiException |
from(java.lang.String status,
java.lang.String errorMessage)
Construct the appropriate ApiException from the response.
|
public static ApiException from(java.lang.String status, java.lang.String errorMessage)
status
- The status field returned from the APIerrorMessage
- The error message returned from the API