Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
Represents an Exception that happened while communicating with Factual. Includes information about the request that triggered the problem.

Author(s):
aaron
public class FactualApiException extends RuntimeException {
  private String requestUrl;
  private String requestMethod;
  private HttpResponse response;
  public FactualApiException(Exception e) {
    super(e);
  }
  public FactualApiException(String msg) {
    super(msg);
  }
    this. = url;
    return this;
  }
  public FactualApiException requestMethod(String method) {
    this. = method;
    return this;
  }
  public FactualApiException response(HttpResponse response) {
    this. = response;
    return this;
  }

  

Returns:
the URL used to make the offending request to Factual.
  public String getRequestUrl() {
    return ;
  }

  

Returns:
the HTTP request method used to make the offending request to Factual.
  public String getRequestMethod() {
    return ;
  }

  

Returns:
the full HttpResponse object, representing the problematic response from Factual.
  public HttpResponse getResponse() {
    return ;
  }
New to GrepCode? Check out our FAQ X