| Package | Description | 
|---|---|
| com.hazelcast.cp.exception | Contains exceptions that can be thrown by APIs of CP Subsystem | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CannotReplicateExceptionA  CPSubsystemExceptionwhich 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
 (seeRaftAlgorithmConfig.getUncommittedEntryCountToRejectNewAppends())
 a membership change is requested before an entry is committed
 on a term | 
| class  | CPGroupDestroyedExceptionA  CPSubsystemExceptionwhich is thrown when a request is sent to
 a destroyed CP group. | 
| class  | LeaderDemotedExceptionA  CPSubsystemExceptionwhich is thrown when
 an appended but not-committed entry is truncated by the new leader. | 
| class  | NotLeaderExceptionA  CPSubsystemExceptionwhich is thrown when
 a leader-only request is received by a non-leader member. | 
| class  | StaleAppendRequestExceptionA  CPSubsystemExceptionwhich is thrown when a Raft leader node
 appends an entry to its local Raft log, but demotes to the follower role
 before learning the commit status of the entry. | 
| Modifier and Type | Method and Description | 
|---|---|
| CPSubsystemException | CPSubsystemException. wrap() | 
Copyright © 2021 Hazelcast, Inc.. All rights reserved.