com.factual.driver
Class FactualApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.factual.driver.FactualApiException
- All Implemented Interfaces:
- Serializable
public class FactualApiException
- extends RuntimeException
Represents an Exception that happened while communicating with Factual.
Includes information about the request that triggered the problem.
- Author:
- aaron
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
FactualApiException
public FactualApiException(Exception e)
FactualApiException
public FactualApiException(String msg)
requestUrl
public FactualApiException requestUrl(String url)
requestMethod
public FactualApiException requestMethod(String method)
response
public FactualApiException response(com.google.api.client.http.HttpResponse response)
getRequestUrl
public String getRequestUrl()
- Returns:
- the URL used to make the offending request to Factual.
getRequestMethod
public String getRequestMethod()
- Returns:
- the HTTP request method used to make the offending request to Factual.
getResponse
public com.google.api.client.http.HttpResponse getResponse()
- Returns:
- the full HttpResponse object, representing the problematic response
from Factual.
Copyright © 2012. All Rights Reserved.