org.apache.commons.httpclient
Class HttpException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.apache.commons.httpclient.URIException
                  extended byorg.apache.commons.httpclient.HttpException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, HttpRecoverableException, MalformedChallengeException, MalformedCookieException

public class HttpException
extends URIException

Signals that an HTTP or HttpClient exception has occurred.

Why is it from URIException? To simplify the programming style for the inherited exception instances.

The usage of the reserved status and reason codes

Version:
$Revision: 1.13 $ $Date: 2003/01/28 04:40:20 $
Author:
Unascribed
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.httpclient.URIException
ESCAPING, PARSING, PUNYCODE, reason, reasonCode, UNKNOWN, UNSUPPORTED_ENCODING
 
Constructor Summary
HttpException()
          Creates a new HttpException.
HttpException(String message)
          Creates a new HttpException with the specified message.
 
Methods inherited from class org.apache.commons.httpclient.URIException
getReason, getReasonCode, setReason, setReasonCode
 
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()
Creates a new HttpException.


HttpException

public HttpException(String message)
Creates a new HttpException with the specified message.

Parameters:
message - exception message


Copyright (c) 1999-2002 - Apache Software Foundation