| 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 2.2 3.3 4.4 |