|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.mail.DefaultMailErrorHandler
public class DefaultMailErrorHandler
This MailErrorHandler implementation simply rethrows the exception it
receives.
| Constructor Summary | |
|---|---|
DefaultMailErrorHandler()
|
|
| Method Summary | |
|---|---|
void |
handle(org.springframework.mail.MailMessage message,
java.lang.Exception exception)
Wraps the input exception with a runtime MailException. |
void |
setMaxMessageLength(int maxMessageLength)
The limit for the size of message that will be copied to the exception message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMailErrorHandler()
| Method Detail |
|---|
public void setMaxMessageLength(int maxMessageLength)
maxMessageLength - the maximum message length
public void handle(org.springframework.mail.MailMessage message,
java.lang.Exception exception)
throws org.springframework.mail.MailException
MailException. The
exception message will contain the failed message (using toString).
handle in interface MailErrorHandlermessage - a failed messageexception - a MessagingException
org.springframework.mail.MailException - a translation of the ExceptionMailErrorHandler.handle(MailMessage, Exception)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||