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');Type Parameters
Section titled “Type Parameters”C extends string
Parameters
Section titled “Parameters”details?
Section titled “details?”Returns
Section titled “Returns”never
