ReplicaWriteException (Oracle - Berkeley DB Java Edition API)
Date: 2014-12-16

com.sleepycat.je.rep

## Class ReplicaWriteException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.sleepycat.je.DatabaseException
        - - com.sleepycat.je.OperationFailureException
          - - com.sleepycat.je.rep.StateChangeException
            - - com.sleepycat.je.rep.ReplicaWriteException

- All Implemented Interfaces:
    Serializable

      public class ReplicaWriteException
      extends StateChangeException

  This exception indicates that an update operation or transaction commit or abort was attempted while in the `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.

  See Also:
    Serialized Form

- - ### Method Summary

    - ### Methods inherited from class com.sleepycat.je.rep.StateChangeException

      `getEvent`

    - ### Methods inherited from class com.sleepycat.je.DatabaseException

      `getMessage`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.