001 /* 002 * Copyright 2001-2005 The Apache Software Foundation 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.apache.commons.net.nntp; 017 018 import java.io.IOException; 019 020 /*** 021 * NNTPConnectionClosedException is used to indicate the premature or 022 * unexpected closing of an NNTP connection resulting from a 023 * {@link org.apache.commons.net.nntp.NNTPReply#SERVICE_DISCONTINUED NNTPReply.SERVICE_DISCONTINUED } 024 * response (NNTP reply code 400) to a 025 * failed NNTP command. This exception is derived from IOException and 026 * therefore may be caught either as an IOException or specifically as an 027 * NNTPConnectionClosedException. 028 * <p> 029 * <p> 030 * @author Daniel F. Savarese 031 * @see NNTP 032 * @see NNTPClient 033 ***/ 034 035 public final class NNTPConnectionClosedException extends IOException 036 { 037 038 /*** Constructs a NNTPConnectionClosedException with no message ***/ 039 public NNTPConnectionClosedException() 040 { 041 super(); 042 } 043 044 /*** 045 * Constructs a NNTPConnectionClosedException with a specified message. 046 * <p> 047 * @param message The message explaining the reason for the exception. 048 ***/ 049 public NNTPConnectionClosedException(String message) 050 { 051 super(message); 052 } 053 054 }