Class HeuristicCompletionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.micronaut.transaction.exceptions.TransactionException
-
- io.micronaut.transaction.exceptions.HeuristicCompletionException
-
- All Implemented Interfaces:
java.io.Serializable
public class HeuristicCompletionException extends TransactionException
Exception that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.- Since:
- 17.03.2003
- Author:
- Rod Johnson, Juergen Hoeller, graemerocher
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeuristicCompletionException.State
Possible state outcomes.
-
Constructor Summary
Constructors Constructor Description HeuristicCompletionException(HeuristicCompletionException.State outcomeState, java.lang.Throwable cause)
Constructor for HeuristicCompletionException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeuristicCompletionException.State
getOutcomeState()
-
-
-
Constructor Detail
-
HeuristicCompletionException
public HeuristicCompletionException(@NonNull HeuristicCompletionException.State outcomeState, java.lang.Throwable cause)
Constructor for HeuristicCompletionException.- Parameters:
outcomeState
- the outcome state of the transactioncause
- the root cause from the transaction API in use
-
-
Method Detail
-
getOutcomeState
@NonNull public HeuristicCompletionException.State getOutcomeState()
- Returns:
- Return the outcome state of the transaction state, as one of the constants in this class.
- See Also:
HeuristicCompletionException.State.UNKNOWN
,HeuristicCompletionException.State.COMMITTED
,HeuristicCompletionException.State.ROLLED_BACK
,HeuristicCompletionException.State.MIXED
-
-