UnrecoverableException.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 is thrown when the action has thrown an error that
11
 * should not be ignored therefore the action should not be retried anymore.
12
 * 
13
 * This exception provides the list of exceptions raised by the previous
14
 * attempts.
15
 * 
16
 * @author Aurélien Baudet
17
 *
18
 */
19
public class UnrecoverableException extends RetryExecutionFailureException {
20
	private static final long serialVersionUID = SERIAL_VERSION_UID;
21
22
	private final List<Exception> executionFailures;
23
24
	public UnrecoverableException(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/UnrecoverableException::getExecutionFailures → NO_COVERAGE
2. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/UnrecoverableException::getExecutionFailures → KILLED
3. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/UnrecoverableException::getExecutionFailures → KILLED
4. getExecutionFailures : replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/UnrecoverableException::getExecutionFailures → KILLED
		return executionFailures;
31
	}
32
33
}

Mutations

30

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

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

3.3
Location : getExecutionFailures
Killed by : oghamcloudhopper.it.AutoRetryExtensionTest.smsNotRetriedDueToCloudhopperError(oghamcloudhopper.it.AutoRetryExtensionTest)
replaced return value with Collections.emptyList for fr/sii/ogham/core/exception/retry/UnrecoverableException::getExecutionFailures → KILLED

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

Active mutators

Tests examined


Report generated by PIT OGHAM