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
|
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. |
| 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 |
OK
public static final int OK
WARNING
public static final int WARNING
ERROR
public static final int ERROR
FATAL
public static final int FATAL
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.
getStatus
public int getStatus()
- Returns:
- status.
getMail
public MailModel getMail()
- Returns:
- mail