org.apache.pivot.web
Class QueryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.pivot.util.concurrent.TaskExecutionException
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
QueryException
public QueryException(int status)
QueryException
public QueryException(int status,
String message)
QueryException
public QueryException(Throwable cause)
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