View Javadoc

1   /*
2    * Copyright 2001-2005 The Apache Software Foundation
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  package org.apache.commons.net.smtp;
17  
18  import java.io.IOException;
19  
20  /***
21   * SMTPConnectionClosedException is used to indicate the premature or
22   * unexpected closing of an SMTP connection resulting from a
23   * {@link org.apache.commons.net.smtp.SMTPReply#SERVICE_NOT_AVAILABLE SMTPReply.SERVICE_NOT_AVAILABLE }
24   *  response (SMTP reply code 421) to a
25   * failed SMTP command.  This exception is derived from IOException and
26   * therefore may be caught either as an IOException or specifically as an
27   * SMTPConnectionClosedException.
28   * <p>
29   * <p>
30   * @author Daniel F. Savarese
31   * @see SMTP
32   * @see SMTPClient
33   ***/
34  
35  public final class SMTPConnectionClosedException extends IOException
36  {
37  
38      /*** Constructs a SMTPConnectionClosedException with no message ***/
39      public SMTPConnectionClosedException()
40      {
41          super();
42      }
43  
44      /***
45       * Constructs a SMTPConnectionClosedException with a specified message.
46       * <p>
47       * @param message  The message explaining the reason for the exception.
48       ***/
49      public SMTPConnectionClosedException(String message)
50      {
51          super(message);
52      }
53  
54  }