public class GooglePlacesException extends RuntimeException
| Constructor and Description |
|---|
GooglePlacesException(String statusCode)
Constructs a new exception from a server-given status code.
|
GooglePlacesException(String statusCode,
String errorMessage)
Constructs a new exception from a server-given status code and error message.
|
GooglePlacesException(Throwable t)
Constructs a new exception from a given
Throwable. |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage()
Returns this exception's error message.
|
String |
getStatusCode()
Returns this exception's status code.
|
static GooglePlacesException |
parse(String statusCode,
String errorMessage)
Returns the correct exception from a server-given status code and error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GooglePlacesException(String statusCode, String errorMessage)
statusCode - to useerrorMessage - to usepublic GooglePlacesException(String statusCode)
statusCode - to usepublic String getStatusCode()
public String getErrorMessage()
public static GooglePlacesException parse(String statusCode, String errorMessage)
statusCode - to find exception forerrorMessage - error message from serverCopyright © 2014–2015. All rights reserved.