MaximumAttemptsReachedException.java

1
package fr.sii.ogham.core.exception.retry;
2
3
import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID;
4
5
import java.util.List;
6
7
import fr.sii.ogham.core.exception.MultipleCauseExceptionWrapper;
8
9
/**
10
 * Specialized exception that indicates that the action couldn't be executed due
11
 * to too many attempts.
12
 * 
13
 * This exception provides the list of original exceptions thrown while trying
14
 * to execute the action.
15
 * 
16
 * @author Aurélien Baudet
17
 *
18
 */
19
public class MaximumAttemptsReachedException extends RetryExecutionFailureException {
20
	private static final long serialVersionUID = SERIAL_VERSION_UID;
21
22
	private final List<Exception> executionFailures;
23
24
	public MaximumAttemptsReachedException(String message, List<Exception> executionFailures) {
25
		super(message, new MultipleCauseExceptionWrapper(executionFailures));
26
		this.executionFailures = executionFailures;
27
	}
28
29
	public List<Exception> getExecutionFailures() {
30 4 1. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → NO_COVERAGE
2. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED
3. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED
4. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED
		return executionFailures;
31
	}
32
33
}

Mutations

30

1.1
Location : getExecutionFailures
Killed by : none
replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → NO_COVERAGE

2.2
Location : getExecutionFailures
Killed by : oghamall.it.retry.AutoRetryTest.resendSms(oghamall.it.retry.AutoRetryTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED

3.3
Location : getExecutionFailures
Killed by : oghamcore.it.core.sender.AutoRetryTest.smsNotSentDueToMaximumAttemptsReached(oghamcore.it.core.sender.AutoRetryTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED

4.4
Location : getExecutionFailures
Killed by : oghamcloudhopper.it.ConnectionFailureTest.invalidServerAddress(oghamcloudhopper.it.ConnectionFailureTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/MaximumAttemptsReachedException::getExecutionFailures → KILLED

Active mutators

Tests examined


Report generated by PIT OGHAM