org.apache.commons.httpclient
Class HttpException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--org.apache.commons.httpclient.URIException
|
+--org.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
- -x: Internal use
- 0: Unknown reason
- x: Basic ill-prepared reason
- 1xx: Informational status
- 2xx: Success status
- 3xx: Redirection status
- 4xx: Client error
- 5xx: Server error
- Version:
- $Revision: 1.13.2.1 $ $Date: 2004/02/22 18:21:13 $
- Author:
- Unascribed
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 © 2001-2004 Apache Software Foundation. All Rights Reserved.