com.hazelcast.cp.exception

## Class CannotReplicateException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.hazelcast.core.HazelcastException
        - - com.hazelcast.cp.exception.CPSubsystemException
          - - com.hazelcast.cp.exception.CannotReplicateException

- All Implemented Interfaces:
    RetryableException, Serializable

      public class CannotReplicateException
      extends CPSubsystemException
      implements RetryableException

  A `CPSubsystemException` which is thrown when an entry cannot be replicated, which can occur in one of the following cases:
  - a member leaves the CP group
  - CP group itself is terminated
  - uncommitted entry count reaches to (see `RaftAlgorithmConfig.getUncommittedEntryCountToRejectNewAppends()`)
  - a membership change is requested before an entry is committed on a term
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CannotReplicateException(Endpoint leader)`

  - ### Method Summary

    - ### Methods inherited from class com.hazelcast.cp.exception.CPSubsystemException

      `getLeader`

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

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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`

- - ### Constructor Detail

    - #### CannotReplicateException

          public CannotReplicateException(Endpoint leader)

Copyright © 2020. All rights reserved.