1 /*
2 * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpException.java,v 1.13.2.1 2004/02/22 18:21:13 olegk Exp $
3 * $Revision: 1.13.2.1 $
4 * $Date: 2004/02/22 18:21:13 $
5 *
6 * ====================================================================
7 *
8 * Copyright 1999-2004 The Apache Software Foundation
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 * ====================================================================
22 *
23 * This software consists of voluntary contributions made by many
24 * individuals on behalf of the Apache Software Foundation. For more
25 * information on the Apache Software Foundation, please see
26 * <http://www.apache.org/>.
27 *
28 * [Additional notices, if required by prior licensing conditions]
29 *
30 */
31
32 package org.apache.commons.httpclient;
33
34 /***
35 * Signals that an HTTP or HttpClient exception has occurred.
36 * <p>
37 * Why is it from URIException?
38 * To simplify the programming style for the inherited exception instances.
39 *
40 * <p>
41 * The usage of the reserved status and reason codes
42 * <ul>
43 * <li> -x: Internal use
44 * <li> 0: Unknown reason
45 * <li> x: Basic ill-prepared reason
46 * <li> 1xx: Informational status
47 * <li> 2xx: Success status
48 * <li> 3xx: Redirection status
49 * <li> 4xx: Client error
50 * <li> 5xx: Server error
51 * </ul>
52 *
53 * @author Unascribed
54 * @version $Revision: 1.13.2.1 $ $Date: 2004/02/22 18:21:13 $
55 */
56 public class HttpException extends URIException {
57
58 /***
59 * Creates a new HttpException.
60 */
61 public HttpException() {
62 super();
63 }
64
65 /***
66 * Creates a new HttpException with the specified message.
67 *
68 * @param message exception message
69 */
70 public HttpException(String message) {
71 super(message);
72 }
73 }