Class QueryExceptionHTTP

All Implemented Interfaces:
Serializable

public class QueryExceptionHTTP extends QueryException
Exception class for all HTTP operations in the SPARQL client library. Error codes are as HTTP status codes.
See Also:
  • Field Details

  • Constructor Details

    • QueryExceptionHTTP

      @Deprecated public QueryExceptionHTTP(int responseCode, String messageBody, HttpException ex)
      Deprecated.
      Use
    • QueryExceptionHTTP

      @Deprecated(forRemoval=true) public QueryExceptionHTTP(int responseCode, String responseMessage)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • QueryExceptionHTTP

      @Deprecated(forRemoval=true) public QueryExceptionHTTP(int responseCode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • QueryExceptionHTTP

      @Deprecated(forRemoval=true) public QueryExceptionHTTP(Throwable cause)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • QueryExceptionHTTP

      @Deprecated(forRemoval=true) public QueryExceptionHTTP(String msg, Throwable cause)
      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

      public static QueryExceptionHTTP rewrap(HttpException httpEx)
    • getStatusCode

      public int getStatusCode()
      The code for the reason for this exception
      Returns:
      statusCode
    • getResponseMessage

      @Deprecated public String getResponseMessage()
      Deprecated.
      The message for the reason for this exception
      Returns:
      message
    • getResponseHeaders

      public HttpHeaders getResponseHeaders()
    • getResponseBody

      public String getResponseBody()
    • getResponse

      @Deprecated public String getResponse()
      Deprecated.
      The response for this exception if available from HTTP
      Returns:
      response or null if no HTTP response was received
    • getStatusLine

      public String 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

      public String toString()
      Overrides:
      toString in class Throwable