Skip to content

reject

reject<C>(code, details?): never

Defined in: core/errors.ts:98

Rejects the current action or hook. The whole entry rolls back and the client receives the code (ADR 0001 rule 6).

if (ctx.turn.seat !== seat) reject('NOT_YOUR_TURN');

C extends string

GameErrorCode<C>

Json

never