org.apache.awf.web.http
Class HttpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.awf.web.http.HttpException
- All Implemented Interfaces:
- Serializable
public class HttpException
- extends RuntimeException
Representation of an exception thrown by the server through the HTTP
protocol.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HttpException
public HttpException(HttpStatus status)
- Create an instance of this type, with the given
HttpStatus
and an empty message.
- Parameters:
status - the HttpStatus to apply.
HttpException
public HttpException(HttpStatus status,
String message)
- Create an instance of this type, with the given
HttpStatus
and message.
- Parameters:
status - the HttpStatus to apply.
getStatus
public HttpStatus getStatus()
- Retrieve the
HttpStatus represented by this exception.
- Returns:
- the represented
HttpStatus.
Copyright © 2012. All Rights Reserved.