1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }