Class QueryExceptionHTTP

All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • QueryExceptionHTTP

      public QueryExceptionHTTP(int responseCode, String responseMessage)
      Constructor for QueryExceptionHTTP.
      Parameters:
      responseCode -
      responseMessage -
    • QueryExceptionHTTP

      public QueryExceptionHTTP(int responseCode)
      Constructor for QueryExceptionHTTP.
      Parameters:
      responseCode -
    • QueryExceptionHTTP

      public QueryExceptionHTTP(Throwable cause)
      Constructor for HttpException used for some unexpected execution error.
      Parameters:
      cause -
    • QueryExceptionHTTP

      public QueryExceptionHTTP(String msg, Throwable cause)
    • QueryExceptionHTTP

      public QueryExceptionHTTP(int responseCode, String message, Throwable cause)
    • QueryExceptionHTTP

      public QueryExceptionHTTP(int responseCode, String message, HttpException ex)
  • Method Details

    • rewrap

      public static QueryExceptionHTTP rewrap(HttpException httpEx)
    • getStatusCode

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

      public String getResponseMessage()
      The message for the reason for this exception
      Returns:
      message
    • getResponse

      public String getResponse()
      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