Class QueryExceptionHTTP
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.jena.shared.JenaException
-
- org.apache.jena.sparql.ARQException
-
- org.apache.jena.query.QueryException
-
- org.apache.jena.sparql.engine.http.QueryExceptionHTTP
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryExceptionHTTP extends QueryException
Exception class for all operations in the SPARQL client library. Error codes are as HTTP status codes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intNoServerstatic intnoStatusCode
-
Constructor Summary
Constructors Constructor Description QueryExceptionHTTP(int responseCode)Constructor for QueryExceptionHTTP.QueryExceptionHTTP(int responseCode, java.lang.String responseMessage)Constructor for QueryExceptionHTTP.QueryExceptionHTTP(int responseCode, java.lang.String message, java.lang.Throwable cause)QueryExceptionHTTP(int responseCode, java.lang.String message, HttpException ex)QueryExceptionHTTP(java.lang.String msg, java.lang.Throwable cause)QueryExceptionHTTP(java.lang.Throwable cause)Constructor for HttpException used for some unexpected execution error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetResponse()The response for this exception if available from HTTPjava.lang.StringgetResponseMessage()The message for the reason for this exceptionintgetStatusCode()The code for the reason for this exceptionjava.lang.StringgetStatusLine()The status line for the response for this exception if available from HTTPjava.lang.StringtoString()
-
-
-
Field Detail
-
noStatusCode
public static final int noStatusCode
- See Also:
- Constant Field Values
-
NoServer
public static final int NoServer
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryExceptionHTTP
public QueryExceptionHTTP(int responseCode, java.lang.String responseMessage)Constructor for QueryExceptionHTTP.- Parameters:
responseCode-responseMessage-
-
QueryExceptionHTTP
public QueryExceptionHTTP(int responseCode)
Constructor for QueryExceptionHTTP.- Parameters:
responseCode-
-
QueryExceptionHTTP
public QueryExceptionHTTP(java.lang.Throwable cause)
Constructor for HttpException used for some unexpected execution error.- Parameters:
cause-
-
QueryExceptionHTTP
public QueryExceptionHTTP(java.lang.String msg, java.lang.Throwable cause)
-
QueryExceptionHTTP
public QueryExceptionHTTP(int responseCode, java.lang.String message, java.lang.Throwable cause)
-
QueryExceptionHTTP
public QueryExceptionHTTP(int responseCode, java.lang.String message, HttpException ex)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
The code for the reason for this exception- Returns:
- statusCode
-
getResponseMessage
public java.lang.String getResponseMessage()
The message for the reason for this exception- Returns:
- message
-
getResponse
public java.lang.String getResponse()
The response for this exception if available from HTTP- Returns:
- response or
nullif no HTTP response was received
-
getStatusLine
public java.lang.String getStatusLine()
The status line for the response for this exception if available from HTTP- Returns:
- status line or
nullif no HTTP response was received
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-