View Javadoc
1   /**
2    * Copyright 2014 Internet2
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * $Header: /home/hagleyj/i2mi/grouper-misc/grouperClient/src/ext/edu/internet2/middleware/grouperClientExt/org/apache/commons/httpclient/NoHttpResponseException.java,v 1.1 2008-11-30 10:57:19 mchyzer Exp $
18   * $Revision: 1.1 $
19   * $Date: 2008-11-30 10:57:19 $
20   *
21   * ====================================================================
22   *
23   *  Licensed to the Apache Software Foundation (ASF) under one or more
24   *  contributor license agreements.  See the NOTICE file distributed with
25   *  this work for additional information regarding copyright ownership.
26   *  The ASF licenses this file to You under the Apache License, Version 2.0
27   *  (the "License"); you may not use this file except in compliance with
28   *  the License.  You may obtain a copy of the License at
29   *
30   *      http://www.apache.org/licenses/LICENSE-2.0
31   *
32   *  Unless required by applicable law or agreed to in writing, software
33   *  distributed under the License is distributed on an "AS IS" BASIS,
34   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35   *  See the License for the specific language governing permissions and
36   *  limitations under the License.
37   * ====================================================================
38   *
39   * This software consists of voluntary contributions made by many
40   * individuals on behalf of the Apache Software Foundation.  For more
41   * information on the Apache Software Foundation, please see
42   * <http://www.apache.org/>.
43   *
44   */
45  
46  package edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient;
47  
48  import java.io.IOException;
49  
50  import edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.util.ExceptionUtil;
51  
52  /**
53   * <p>
54   * Signals that the target server failed to respond with a valid HTTP response.
55   * </p>
56   * 
57   * @author <a href="mailto:oleg -at- ural.ru">Oleg Kalnichevski</a>
58   * 
59   * @version $Revision: 1.1 $
60   */
61  public class NoHttpResponseException extends IOException {
62  
63      /**
64       * Creates a new NoHttpResponseException with a <tt>null</tt> detail message.
65       */
66      public NoHttpResponseException() {
67          super();
68      }
69  
70      /**
71       * Creates a new NoHttpResponseException with the specified detail message.
72       *
73       * @param message exception message
74       */
75      public NoHttpResponseException(String message) {
76          super(message);
77      }
78  
79      /**
80       * Creates a new NoHttpResponseException with the specified detail message and cause.
81       *
82       * @param message the exception detail message
83       * @param cause the <tt>Throwable</tt> that caused this exception, or <tt>null</tt>
84       * if the cause is unavailable, unknown, or not a <tt>Throwable</tt>
85       * 
86       * @since 3.0
87       */
88      public NoHttpResponseException(String message, Throwable cause) {
89          super(message);
90          // If we're running on JDK 1.4 or later, tell Throwable what the cause was
91          ExceptionUtil.initCause(this, cause);
92      }
93  }