| 1 | package fr.sii.ogham.core.exception.retry; | |
| 2 | ||
| 3 | import static fr.sii.ogham.core.CoreConstants.SERIAL_VERSION_UID; | |
| 4 | ||
| 5 | import java.time.Instant; | |
| 6 | ||
| 7 | /** | |
| 8 | * Simple wrapper that carries additional information about the execution | |
| 9 | * context. | |
| 10 | * | |
| 11 | * @author Aurélien Baudet | |
| 12 | * | |
| 13 | */ | |
| 14 | public class ExecutionFailureWrapper extends RetryExecutionFailureException { | |
| 15 | private static final long serialVersionUID = SERIAL_VERSION_UID; | |
| 16 | ||
| 17 | private final String actionName; | |
| 18 | private final Instant executionStart; | |
| 19 | private final Instant executionFailure; | |
| 20 | ||
| 21 | public ExecutionFailureWrapper(String action, Instant executionStart, Instant executionFailure, Throwable cause) { | |
| 22 | super(cause); | |
| 23 | this.actionName = action; | |
| 24 | this.executionStart = executionStart; | |
| 25 | this.executionFailure = executionFailure; | |
| 26 | } | |
| 27 | ||
| 28 | public String getActionName() { | |
| 29 |
1
1. getActionName : replaced return value with "" for fr/sii/ogham/core/exception/retry/ExecutionFailureWrapper::getActionName → NO_COVERAGE |
return actionName; |
| 30 | } | |
| 31 | ||
| 32 | public Instant getExecutionStart() { | |
| 33 |
1
1. getExecutionStart : replaced return value with null for fr/sii/ogham/core/exception/retry/ExecutionFailureWrapper::getExecutionStart → NO_COVERAGE |
return executionStart; |
| 34 | } | |
| 35 | ||
| 36 | public Instant getExecutionFailure() { | |
| 37 |
1
1. getExecutionFailure : replaced return value with null for fr/sii/ogham/core/exception/retry/ExecutionFailureWrapper::getExecutionFailure → NO_COVERAGE |
return executionFailure; |
| 38 | } | |
| 39 | ||
| 40 | } | |
Mutations | ||
| 29 |
1.1 |
|
| 33 |
1.1 |
|
| 37 |
1.1 |