NotLeaderException

class NotLeaderException(message: String = "not the current leader") : Exception

Thrown by RaftNode.propose when this node is not the current leader.

This includes learner nodes, which can never lead. Callers should read RaftNode.leader to find the current leader and redirect the proposal, or retry after the next RaftNode.role transition to RaftRole.Leader.

Constructors

Link copied to clipboard
constructor(message: String = "not the current leader")

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?