class
Raft::Error::NotLeader
- Raft::Error::NotLeader
- Raft::Error
- Exception
- Reference
- Object
Overview
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.
Defined in:
raft/error.crConstructors
Instance Method Summary
-
#leader_hint : String | Nil
The ID of the current leader, if known.
Constructor Detail
Instance Method Detail
def leader_hint : String | Nil
#
The ID of the current leader, if known. nil when the leader is unknown.