Class CannotReplicateException

All Implemented Interfaces:
RetryableException, com.hazelcast.spi.impl.operationservice.WrappableException<CPSubsystemException>, 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:
See Also:
Serialized Form
  • Constructor Details

    • CannotReplicateException

      public CannotReplicateException​(com.hazelcast.cp.internal.raft.impl.RaftEndpoint leader)
  • Method Details

    • wrap

      public CannotReplicateException wrap()
      Description copied from interface: com.hazelcast.spi.impl.operationservice.WrappableException
      Returns a new exception of the same type as this exception, using this exception as its cause. This is useful when this is a remote or async exception, because it's stack trace is disconnected from the client code that handles the exception. The returned exception includes all the state of this exception, while providing the local stack trace and the remote/async stack trace in its cause.
      Specified by:
      wrap in interface com.hazelcast.spi.impl.operationservice.WrappableException<CPSubsystemException>
      Overrides:
      wrap in class CPSubsystemException
      Returns:
      a new WrappableException with this as its cause.