    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.http.HTTPException

    java.lang.Object
       |
       +----java.lang.Throwable
               |
               +----java.lang.Exception
                       |
                       +----w3c.jigsaw.http.HTTPException

public class HTTPException
extends Exception

All entities should throw an HTTPException when encoutering some problems. This kind of exception is the one that gets normally caught by clients, and result in sending back HTTP error messages to the client.

##

HTTPException(Reply)
HTTPException(String)
HTTPException(String, Reply)

##

getReply()
  Get this exception reply.
hasReply()
  Was a reply provided with the exception ?

##

HTTPException

     public HTTPException(String msg)

HTTPException

     public HTTPException(String msg,
                          Reply error)

HTTPException

     public HTTPException(Reply error)

##

hasReply

     public boolean hasReply()

  Was a reply provided with the exception ?

  Returns:
    True if a reply is available.

getReply

     public Reply getReply()

  Get this exception reply.

  Returns:
    The reply to send back to requesting process.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index