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.smtp; 017 018 import java.io.IOException; 019 020 /*** 021 * SMTPConnectionClosedException is used to indicate the premature or 022 * unexpected closing of an SMTP connection resulting from a 023 * {@link org.apache.commons.net.smtp.SMTPReply#SERVICE_NOT_AVAILABLE SMTPReply.SERVICE_NOT_AVAILABLE } 024 * response (SMTP reply code 421) to a 025 * failed SMTP command. This exception is derived from IOException and 026 * therefore may be caught either as an IOException or specifically as an 027 * SMTPConnectionClosedException. 028 * <p> 029 * <p> 030 * @author Daniel F. Savarese 031 * @see SMTP 032 * @see SMTPClient 033 ***/ 034 035 public final class SMTPConnectionClosedException extends IOException 036 { 037 038 /*** Constructs a SMTPConnectionClosedException with no message ***/ 039 public SMTPConnectionClosedException() 040 { 041 super(); 042 } 043 044 /*** 045 * Constructs a SMTPConnectionClosedException with a specified message. 046 * <p> 047 * @param message The message explaining the reason for the exception. 048 ***/ 049 public SMTPConnectionClosedException(String message) 050 { 051 super(message); 052 } 053 054 }