001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package org.apache.hadoop.hbase.exceptions;
019
020/**
021*
022* Licensed to the Apache Software Foundation (ASF) under one
023* or more contributor license agreements.  See the NOTICE file
024* distributed with this work for additional information
025* regarding copyright ownership.  The ASF licenses this file
026* to you under the Apache License, Version 2.0 (the
027* "License"); you may not use this file except in compliance
028* with the License.  You may obtain a copy of the License at
029*
030*     http://www.apache.org/licenses/LICENSE-2.0
031*
032* Unless required by applicable law or agreed to in writing, software
033* distributed under the License is distributed on an "AS IS" BASIS,
034* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
035* See the License for the specific language governing permissions and
036* limitations under the License.
037*/
038
039import java.io.IOException;
040import org.apache.yetus.audience.InterfaceAudience;
041
042/**
043 * Thrown when the client believes that we are trying to communicate to has been repeatedly
044 * unresponsive for a while. On receiving such an exception. The ConnectionManager will skip all
045 * retries and fast fail the operation.
046 */
047@InterfaceAudience.Public
048public class ConnectionClosingException extends IOException {
049  public ConnectionClosingException(String string) {
050    super(string);
051  }
052
053  /**
054   * ConnectionClosingException with cause
055   * @param message the message for this exception
056   * @param cause   the cause for this exception
057   */
058  public ConnectionClosingException(String message, Throwable cause) {
059    super(message, cause);
060  }
061
062  private static final long serialVersionUID = -8980028569652624236L;
063}