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
- 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 $ $Date: 2003/01/28 04:40:20 $
- Author:
- Unascribed
- See Also:
- Serialized Form
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-2003 Apache Software Foundation. All Rights Reserved.