TsBiff 1.3


ts.mail
Class SendMailException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--ts.mail.SendMailException
All Implemented Interfaces:
java.io.Serializable

public class SendMailException
extends java.lang.Exception

Thrown to indicate that there is an error in the underlying protocol, such as a SMTP error.

Version:
$Id: SendMailException.java,v 1.4 1999/02/21 08:47:14 hauk Exp $
Author:
Jan-Henrik Haukeland <hauk@tildeslash.com>
See Also:
Serialized Form

Field Summary
static int ERROR
           
static int FATAL
           
static int OK
           
static int WARNING
           
 
Constructor Summary
SendMailException(int status, java.lang.String message)
          Store status and message.
SendMailException(int status, java.lang.String message, MailModel aMail)
          Store status, message and the mail that was processed.
 
Method Summary
 MailModel getMail()
           
 int getStatus()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OK

public static final int OK

WARNING

public static final int WARNING

ERROR

public static final int ERROR

FATAL

public static final int FATAL
Constructor Detail

SendMailException

public SendMailException(int status,
                         java.lang.String message)
Store status and message. Legal values for status are public constants in this class.

SendMailException

public SendMailException(int status,
                         java.lang.String message,
                         MailModel aMail)
Store status, message and the mail that was processed.
Method Detail

getStatus

public int getStatus()
Returns:
status.

getMail

public MailModel getMail()
Returns:
mail

TsBiff 1.3