java.io.Serializable
AccessNotConfiguredException
, InvalidRequestException
, MaxElementsExceededException
, NotFoundException
, OverDailyLimitException
, OverQueryLimitException
, RequestDeniedException
, UnknownErrorException
, ZeroResultsException
public class ApiException
extends java.lang.Exception
status
field returned in any of the Geo API responses.Modifier | Constructor | Description |
---|---|---|
protected |
ApiException(java.lang.String message) |
Modifier and Type | Method | 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