org.w3c.www.protocol.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.w3c.www.protocol.http.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.lang.Exception

Exception thrown when processing a request failed.

See Also:
Serialized Form

Constructor Summary
HttpException(java.lang.Exception ex, java.lang.String msg)
           
HttpException(Reply reply, java.lang.Exception ex)
           
HttpException(Reply reply, java.lang.String msg)
           
HttpException(Request request, java.lang.Exception ex)
           
HttpException(Request request, Reply reply, java.lang.Exception ex)
           
HttpException(Request request, Reply reply, java.lang.Exception ex, java.lang.String msg)
           
HttpException(Request request, Reply reply, java.lang.String msg)
           
HttpException(Request request, java.lang.String msg)
           
 
Method Summary
 java.lang.Exception getException()
          Get the original cause for this exception.
 Reply getReply()
          Get the reply generated (if any)
 Request getRequest()
          Get the request that triggered 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(Request request,
                     Reply reply,
                     java.lang.String msg)

HttpException

public HttpException(Request request,
                     Reply reply,
                     java.lang.Exception ex,
                     java.lang.String msg)

HttpException

public HttpException(Request request,
                     Reply reply,
                     java.lang.Exception ex)

HttpException

public HttpException(Reply reply,
                     java.lang.String msg)

HttpException

public HttpException(Request request,
                     java.lang.String msg)

HttpException

public HttpException(Reply reply,
                     java.lang.Exception ex)

HttpException

public HttpException(Request request,
                     java.lang.Exception ex)

HttpException

public HttpException(java.lang.Exception ex,
                     java.lang.String msg)
Method Detail

getException

public final java.lang.Exception getException()
Get the original cause for this exception. HttpException can be used to wrap up transport layer problems (such as IOException or other SocketException, etc). In that case, this method will return the original exception that occured.

Returns:
An Exception instance, or null.

getRequest

public final Request getRequest()
Get the request that triggered this exception.

Returns:
A Request instance.

getReply

public final Reply getReply()
Get the reply generated (if any)

Returns:
A Request instance.