public class ReplicaWriteException extends StateChangeException
ReplicatedEnvironment.State.REPLICA state. The transaction is marked
as being invalid.
The exception is the result of either an error in the application logic or the result of a transition of the node from Master to Replica while a transaction was in progress.
The application must abort the current transaction and redirect all subsequent update operations to the Master.
| Constructor and Description |
|---|
ReplicaWriteException(Locker locker,
StateChangeEvent stateChangeEvent)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReplicaWrite()
For internal use only.
|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
getEventaddErrorMessage, addRethrownStackTrace, getMessage, getVersionHeaderaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ReplicaWriteException(Locker locker, StateChangeEvent stateChangeEvent)
public OperationFailureException wrapSelf(String msg)
wrapSelf in class OperationFailureExceptionpublic boolean isReplicaWrite()
isReplicaWrite in class OperationFailureExceptionCopyright © 2024. All rights reserved.