All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.messaging.smtp.SMTPServerException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.io.IOException
                           |
                           +----netscape.messaging.smtp.SMTPException
                                   |
                                   +----netscape.messaging.smtp.SMTPServerException

public class SMTPServerException
extends SMTPException
The SMTPServerException class represents a server response error in the SMTP implementation of the Messaging Access SDK.

The SMTPServerException class handles server response errors. An SMTPServerException is thrown only from the error callback on the response sink. The interface definition for ISMTPSink states that an SMTPServerException can be thrown, but it is up to the developer to determine whether or not the implementation of the error callback will throw this exception. As a default, the SMTPSink class throws an exception whenever the error callback is called.

This exception is caused when the server sends an error saying that some part of the operation failed or is not supported. This can happen even when all relevant code executes properly.


Constructor Index

 o SMTPServerException()
Creates an SMTPServerException object.
 o SMTPServerException(String)
Creates an SMTPServerException object that includes a descriptive string.

Constructors

 o SMTPServerException
 public SMTPServerException()
Creates an SMTPServerException object. Default constructor for a SMTPServerException object.

 o SMTPServerException
 public SMTPServerException(String msg)
Creates an SMTPServerException object that includes a descriptive string.

Parameters:
msg - String that describes the exception.

All Packages  Class Hierarchy  This Package  Previous  Next  Index