|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception SK.gnome.dwarf.mail.MailException SK.gnome.dwarf.mail.smtp.proc.FailedDeliveryException
This exception may be thrown to indicate a failed message delivery.
If a MailAgent
throws this exception, the processed message will be
automatically marked as not delivered with the given specific reason. If the DSN
extension to SMTP is enabled, a delivery status notification will be automatically
generated for the message by the server.
Constructor Summary | |
FailedDeliveryException(int type,
java.lang.String code,
java.lang.String status)
Creates a new FailedDeliveryException. |
|
FailedDeliveryException(int type,
java.lang.String code,
java.lang.String status,
java.lang.Throwable cause)
Creates a new FailedDeliveryException. |
Method Summary | |
java.lang.String |
getCode()
Returns the numerical SMTP status code. |
java.lang.String |
getStatus()
Returns the readable SMTP status message. |
int |
getType()
Returns the delivery type. |
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 |
public FailedDeliveryException(int type, java.lang.String code, java.lang.String status)
The type argument may be either the Recipient.FAILED
or
Recipient.REJECTED
. In the latter case, an eventual DSN notification will not
be sent to the message's sender.
type
- the delivery typecode
- the numerical SMTP status code in the form of X.Y.Zstatus
- the readable SMTP status messagepublic FailedDeliveryException(int type, java.lang.String code, java.lang.String status, java.lang.Throwable cause)
The type argument may be either the Recipient.FAILED
or
Recipient.REJECTED
. In the latter case, an eventual DSN notification will not
be sent to the message's sender.
type
- the delivery typecode
- the numerical SMTP status code in the form of X.Y.Zstatus
- the readable SMTP status messagecause
- the root causeMethod Detail |
public int getType()
public java.lang.String getCode()
public java.lang.String getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |