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:
Serializable
Exception class for all operations in the SPARQL client library. Error codes are
as HTTP status codes.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQueryExceptionHTTP
(int responseCode) Constructor for QueryExceptionHTTP.QueryExceptionHTTP
(int responseCode, String responseMessage) Constructor for QueryExceptionHTTP.QueryExceptionHTTP
(int responseCode, String message, Throwable cause) QueryExceptionHTTP
(int responseCode, String message, HttpException ex) QueryExceptionHTTP
(String msg, Throwable cause) QueryExceptionHTTP
(Throwable cause) Constructor for HttpException used for some unexpected execution error. -
Method Summary
Modifier and TypeMethodDescriptionThe response for this exception if available from HTTPThe message for the reason for this exceptionint
The code for the reason for this exceptionThe status line for the response for this exception if available from HTTPstatic QueryExceptionHTTP
rewrap
(HttpException httpEx) toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
noStatusCode
public static final int noStatusCode- See Also:
-
NoServer
public static final int NoServer- See Also:
-
-
Constructor Details
-
QueryExceptionHTTP
Constructor for QueryExceptionHTTP.- Parameters:
responseCode
-responseMessage
-
-
QueryExceptionHTTP
public QueryExceptionHTTP(int responseCode) Constructor for QueryExceptionHTTP.- Parameters:
responseCode
-
-
QueryExceptionHTTP
Constructor for HttpException used for some unexpected execution error.- Parameters:
cause
-
-
QueryExceptionHTTP
-
QueryExceptionHTTP
-
QueryExceptionHTTP
-
-
Method Details
-
rewrap
-
getStatusCode
public int getStatusCode()The code for the reason for this exception- Returns:
- statusCode
-
getResponseMessage
The message for the reason for this exception- Returns:
- message
-
getResponse
The response for this exception if available from HTTP- Returns:
- response or
null
if no HTTP response was received
-
getStatusLine
The status line for the response for this exception if available from HTTP- Returns:
- status line or
null
if no HTTP response was received
-
toString
-