org.apache.awf.web.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
HttpException(HttpStatus status)
          Create an instance of this type, with the given HttpStatus and an empty message.
HttpException(HttpStatus status, String message)
          Create an instance of this type, with the given HttpStatus and message.
 
Method Summary
 HttpStatus getStatus()
          Retrieve the HttpStatus represented by this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

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

getStatus

public HttpStatus getStatus()
Retrieve the HttpStatus represented by this exception.

Returns:
the represented HttpStatus.


Copyright © 2012. All Rights Reserved.