Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright 2006-2010 the original author or authors.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.springframework.batch.item.mail;
This class is used to handle errors that occur when email messages are unable to be sent.

Dan Garrette
Dave Syer
public interface MailErrorHandler {

This method will be called for each message that failed sending in the chunk. If the failed message is needed by the handler it will need to be downcast according to its runtime type. If an exception is thrown from this method, then it will propagate to the caller.

message the failed message
exception the exception that caused the failure
org.springframework.mail.MailException if the exception cannot be handled
	public void handle(MailMessage messageException exceptionthrows MailException;
New to GrepCode? Check out our FAQ X