class

Raft::Error::NotLeader

Inherits Raft::Error < Exception < Reference < Object

Raised when an operation requires the leader role but this node is not the leader.

The leader_hint field, when set, contains the ID of the node believed to be the current leader, allowing clients to redirect their requests.

Constructors

new(leader_hint : String | Nil = nil)
Source

Instance methods

leader_hint

The ID of the current leader, if known. nil when the leader is unknown.

Source