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 HTTP operations in the SPARQL client library.
Error codes are as HTTP status codes.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueryExceptionHTTP(int responseCode) Deprecated, for removal: This API element is subject to removal in a future version.QueryExceptionHTTP(int responseCode, String responseMessage) Deprecated, for removal: This API element is subject to removal in a future version.QueryExceptionHTTP(int responseCode, String message, Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version.QueryExceptionHTTP(int responseCode, String messageBody, HttpException ex) Deprecated.UseQueryExceptionHTTP(String msg, Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version.QueryExceptionHTTP(Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.intThe code for the reason for this exceptionThe status line for the response for this exception if available from HTTPstatic QueryExceptionHTTPrewrap(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
Deprecated.Use -
QueryExceptionHTTP
Deprecated, for removal: This API element is subject to removal in a future version. -
QueryExceptionHTTP
Deprecated, for removal: This API element is subject to removal in a future version. -
QueryExceptionHTTP
Deprecated, for removal: This API element is subject to removal in a future version. -
QueryExceptionHTTP
Deprecated, for removal: This API element is subject to removal in a future version. -
QueryExceptionHTTP
@Deprecated(forRemoval=true) public QueryExceptionHTTP(int responseCode, String message, Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
rewrap
-
getStatusCode
public int getStatusCode()The code for the reason for this exception- Returns:
- statusCode
-
getResponseMessage
Deprecated.The message for the reason for this exception- Returns:
- message
-
getResponseHeaders
-
getResponseBody
-
getResponse
Deprecated.The response for this exception if available from HTTP- Returns:
- response or
nullif no HTTP response was received
-
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
-