
software.amazon.lambda.powertools.sqs.SQSBatchProcessingException Maven / Gradle / Ivy
package software.amazon.lambda.powertools.sqs;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.amazonaws.services.lambda.runtime.events.SQSEvent;
import static com.amazonaws.services.lambda.runtime.events.SQSEvent.SQSMessage;
import static java.util.Collections.*;
import static java.util.stream.Collectors.joining;
/**
*
* When one or more {@link SQSMessage} fails and if any exception is thrown from {@link SqsMessageHandler#process(SQSMessage)}
* during processing of a messages, this exception is with all the details of successful and failed messages.
*
*
*
* This exception can be thrown form:
*
* - {@link SqsBatch}
* - {@link SqsUtils#batchProcessor(SQSEvent, Class)}
* - {@link SqsUtils#batchProcessor(SQSEvent, boolean, Class)}
* - {@link SqsUtils#batchProcessor(SQSEvent, SqsMessageHandler)}
* - {@link SqsUtils#batchProcessor(SQSEvent, boolean, SqsMessageHandler)}
*
*
*/
public class SQSBatchProcessingException extends RuntimeException {
private final List exceptions;
private final List failures;
private final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy