Package org.apache.ignite.tx
Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ignite.lang.IgniteException
org.apache.ignite.tx.TransactionException
- All Implemented Interfaces:
Serializable
,TraceableException
- Direct Known Subclasses:
IncompatibleSchemaException
,MismatchingTransactionOutcomeException
This exception is thrown if a transaction can't be finished for some reason.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionException
(int code, @Nullable Throwable cause) Creates a new transaction exception with the given error code and cause.TransactionException
(int code, String message) Creates a new transaction exception with the given error code and detail message.TransactionException
(int code, String message, @Nullable Throwable cause) Creates a new transaction exception with the given error code, detail message and cause.TransactionException
(UUID traceId, int code, @Nullable Throwable cause) Creates a new transaction exception with the given trace id, error code and cause.TransactionException
(UUID traceId, int code, String message, @Nullable Throwable cause) Creates a new transaction exception with the given trace id, error code, detail message and cause. -
Method Summary
Methods inherited from class org.apache.ignite.lang.IgniteException
code, codeAsString, errorCode, groupCode, groupName, toString, traceId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TransactionException
Creates a new transaction exception with the given error code and cause.- Parameters:
code
- Full error code.cause
- Optional nested exception (can benull
).
-
TransactionException
Creates a new transaction exception with the given error code and detail message.- Parameters:
code
- Full error code.message
- Detail message.
-
TransactionException
Creates a new transaction exception with the given trace id, error code and cause.- Parameters:
traceId
- Unique identifier of this exception.code
- Full error code.cause
- Optional nested exception (can benull
).
-
TransactionException
Creates a new transaction exception with the given error code, detail message and cause.- Parameters:
code
- Full error code.message
- Detail message.cause
- Optional nested exception (can benull
).
-
TransactionException
public TransactionException(UUID traceId, int code, String message, @Nullable @Nullable Throwable cause) Creates a new transaction exception with the given trace id, error code, detail message and cause.- Parameters:
traceId
- Unique identifier of this exception.code
- Full error code.message
- Detail message.cause
- Optional nested exception (can benull
).
-