public class ReplicaWriteException extends StateChangeException
ReplicatedEnvironment.State.REPLICA
state. The transaction is marked
as being invalid.
The exception typically indicates an error in the application logic. In some extremely rare cases it could be 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 |
---|---|
OperationFailureException |
wrapSelf(java.lang.String msg)
For internal use only.
|
getEvent
addErrorMessage, getMessage, getVersionHeader
public ReplicaWriteException(Locker locker, StateChangeEvent stateChangeEvent)
public OperationFailureException wrapSelf(java.lang.String msg)
wrapSelf
in class OperationFailureException
Copyright (c) 2004-2012 Oracle. All rights reserved.