    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.protocol.http.HttpException

    java.lang.Object
       |
       +----java.lang.Throwable
               |
               +----java.lang.Exception
                       |
                       +----w3c.www.protocol.http.HttpException

public class HttpException
extends Exception

Exception thrown when processing a request failed.

##

HttpException(Exception, String)
HttpException(Request, Exception)
HttpException(Request, String)

##

getException()
  Get the original cause for this exception.
getRequest()
  Get the request that triggered this exception.

##

HttpException

     public HttpException(Request request,
                          String msg)

HttpException

     public HttpException(Request request,
                          Exception ex)

HttpException

     public HttpException(Exception ex,
                          String msg)

##

getException

     public final 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.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index