Package 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:
java.io.Serializable
public class QueryException extends TaskExecutionException
Thrown when an error occurs while executing a web query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryException(int status)
QueryException(int status, java.lang.String message)
QueryException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocalizedMessage()
int
getStatus()
Returns the HTTP status code corresponding to the exception.
-
-
-
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 java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classjava.lang.Throwable
-
-