Class 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 int NoServer  
      static int noStatusCode  
    • 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.String getResponse()
      The response for this exception if available from HTTP
      java.lang.String getResponseMessage()
      The message for the reason for this exception
      int getStatusCode()
      The code for the reason for this exception
      java.lang.String getStatusLine()
      The status line for the response for this exception if available from HTTP
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 null if 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 null if no HTTP response was received
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable