public class QueryExceptionHTTP extends QueryException
| Modifier and Type | Field and Description |
|---|---|
static int |
noResponseCode |
static int |
NoServer |
| Constructor and Description |
|---|
QueryExceptionHTTP(int responseCode)
Constructor for QueryExceptionHTTP.
|
QueryExceptionHTTP(int responseCode,
String responseMessage)
Constructor for QueryExceptionHTTP.
|
QueryExceptionHTTP(int responseCode,
String message,
HttpException ex) |
QueryExceptionHTTP(int responseCode,
String message,
Throwable cause) |
QueryExceptionHTTP(String msg,
Throwable cause) |
QueryExceptionHTTP(Throwable cause)
Constructor for HttpException used for some unexpected execution error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResponse()
The response for this exception if available from HTTP
|
int |
getResponseCode()
The code for the reason for this exception
|
String |
getResponseMessage()
The message for the reason for this exception
|
String |
getStatusLine()
The status line for the response for this exception if available from HTTP
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final int noResponseCode
public static final int NoServer
public QueryExceptionHTTP(int responseCode,
String responseMessage)
responseCode - responseMessage - public QueryExceptionHTTP(int responseCode)
responseCode - public QueryExceptionHTTP(Throwable cause)
cause - public QueryExceptionHTTP(int responseCode,
String message,
HttpException ex)
public int getResponseCode()
public String getResponseMessage()
public String getResponse()
null if no HTTP response was receivedpublic String getStatusLine()
null if no HTTP response was receivedLicenced under the Apache License, Version 2.0