com.cometway.net
Class ESMTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.cometway.net.ESMTPException
All Implemented Interfaces:
java.io.Serializable

public class ESMTPException
extends java.lang.RuntimeException

This exception is thrown by the ESMTPSender in the event that the message that is to be sent is refused by the SMTP server.

See Also:
Serialized Form

Field Summary
static int AUTH
           
static int CONNECT
           
static int DATA
           
static int EHLO
           
static int EXPN
           
static int FROM
           
static int HELO
           
static int NOOP
           
static int QUIT
           
static int RSET
           
static int TO
           
static int VRFY
           
 
Constructor Summary
ESMTPException(int type)
           
ESMTPException(int type, java.lang.Object info)
           
 
Method Summary
 java.lang.Object getInfo()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECT

public static final int CONNECT
See Also:
Constant Field Values

HELO

public static final int HELO
See Also:
Constant Field Values

EHLO

public static final int EHLO
See Also:
Constant Field Values

FROM

public static final int FROM
See Also:
Constant Field Values

TO

public static final int TO
See Also:
Constant Field Values

DATA

public static final int DATA
See Also:
Constant Field Values

RSET

public static final int RSET
See Also:
Constant Field Values

AUTH

public static final int AUTH
See Also:
Constant Field Values

EXPN

public static final int EXPN
See Also:
Constant Field Values

VRFY

public static final int VRFY
See Also:
Constant Field Values

NOOP

public static final int NOOP
See Also:
Constant Field Values

QUIT

public static final int QUIT
See Also:
Constant Field Values
Constructor Detail

ESMTPException

public ESMTPException(int type)

ESMTPException

public ESMTPException(int type,
                      java.lang.Object info)
Method Detail

getType

public int getType()

getInfo

public java.lang.Object getInfo()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable