org.apache.pivot.web
Class QueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.pivot.util.concurrent.TaskExecutionException
              extended by org.apache.pivot.web.QueryException
All Implemented Interfaces:
Serializable

public class QueryException
extends TaskExecutionException

Thrown when an error occurs while executing a web query.

See Also:
Serialized Form

Constructor Summary
QueryException(int status)
           
QueryException(int status, String message)
           
QueryException(Throwable cause)
           
 
Method Summary
 String getLocalizedMessage()
           
 int getStatus()
          Returns the HTTP status code corresponding to the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryException

public QueryException(int status)

QueryException

public QueryException(int status,
                      String message)

QueryException

public QueryException(Throwable cause)
Method Detail

getStatus

public int getStatus()
Returns the HTTP status code corresponding to the exception.

Returns:
An HTTP status code reflecting the nature of the exception, or 0 if the HTTP status is not known.

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable