com.hp.hpl.jena.sparql.engine.http
Class QueryExceptionHTTP

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.hp.hpl.jena.shared.JenaException
                  extended by com.hp.hpl.jena.sparql.ARQException
                      extended by com.hp.hpl.jena.query.QueryException
                          extended by com.hp.hpl.jena.sparql.engine.http.QueryExceptionHTTP
All Implemented Interfaces:
Serializable

public class QueryExceptionHTTP
extends QueryException

Exception class for all operations in the Joseki client library. Error codes are as HTTP statsus codes.

See Also:
Serialized Form

Field Summary
static int noResponseCode
           
static int NoServer
           
 
Constructor Summary
QueryExceptionHTTP(int responseCode)
          Constructor for QueryExceptionHTTP.
QueryExceptionHTTP(int responseCode, String responseMessage)
          Constructor for QueryExceptionHTTP.
QueryExceptionHTTP(String msg, Throwable cause)
           
QueryExceptionHTTP(Throwable cause)
          Constructor for HttpException used for some unexpected execution error.
 
Method Summary
 int getResponseCode()
          The code for the reason for this exception
 String getResponseMessage()
          The messge for the reason for this exception
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

noResponseCode

public static final int noResponseCode
See Also:
Constant Field Values

NoServer

public static final int NoServer
See Also:
Constant Field Values
Constructor Detail

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)
Method Detail

getResponseCode

public int getResponseCode()
The code for the reason for this exception

Returns:
responseCode

getResponseMessage

public String getResponseMessage()
The messge for the reason for this exception

Returns:
message

toString

public String toString()
Overrides:
toString in class Throwable


Licenced under the Apache License, Version 2.0