org.apache.commons.net.smtp
Class SMTPConnectionClosedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.commons.net.smtp.SMTPConnectionClosedException
All Implemented Interfaces:
Serializable

public final class SMTPConnectionClosedException
extends IOException

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:
SMTP, SMTPClient, Serialized Form

Constructor Summary
SMTPConnectionClosedException()
          Constructs a SMTPConnectionClosedException with no message
SMTPConnectionClosedException(String message)
          Constructs a SMTPConnectionClosedException with a specified message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMTPConnectionClosedException

public SMTPConnectionClosedException()
Constructs a SMTPConnectionClosedException with no message


SMTPConnectionClosedException

public SMTPConnectionClosedException(String message)
Constructs a SMTPConnectionClosedException with a specified message.

Parameters:
message - The message explaining the reason for the exception.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.