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.


Constructor Index

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

Method Index

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

Constructors

 o HttpException
 public HttpException(Request request,
                      String msg)
 o HttpException
 public HttpException(Request request,
                      Exception ex)
 o HttpException
 public HttpException(Exception ex,
                      String msg)

Methods

 o 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.
 o 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