DuplicateHostException
class DuplicateHostException(message: String = "another peer already declared host for this session — exactly one gameHost per session is required") : IllegalStateException
Thrown by gameHost when another peer on the same session has already declared itself host.
Exactly one peer per session must call gameHost; a duplicate declaration is always a programming error on unarbitrated fabrics. The exception is thrown before any Raft bootstrap so the conflicting peer fails fast rather than entering an inconsistent state.
Constructors
Link copied to clipboard
constructor(message: String = "another peer already declared host for this session — exactly one gameHost per session is required")