Package org.apache.commons.net.smtp
Class SMTPConnectionClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.net.smtp.SMTPConnectionClosedException
- All Implemented Interfaces:
- Serializable
SMTPConnectionClosedException is used to indicate the premature or unexpected closing of an SMTP connection resulting from a
 
SMTPReply.SERVICE_NOT_AVAILABLE  response (SMTP reply code 421) to a failed SMTP command.
 This exception is derived from IOException and therefore may be caught either as an IOException or specifically as an SMTPConnectionClosedException.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a SMTPConnectionClosedException with no messageSMTPConnectionClosedException(String message) Constructs a SMTPConnectionClosedException with a specified message.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
SMTPConnectionClosedExceptionpublic SMTPConnectionClosedException()Constructs a SMTPConnectionClosedException with no message
- 
SMTPConnectionClosedExceptionConstructs a SMTPConnectionClosedException with a specified message.- Parameters:
- message- The message explaining the reason for the exception.
 
 
-