Early-exit guard: throw when the predicate holds.
Renders to if (predicate) throw error. Use for precondition and authorization checks that abort the operation.
if (predicate) throw error
Error thrown when predicate holds.
Condition that triggers the throw when true.
Early-exit guard: throw when the predicate holds.
Renders to
if (predicate) throw error. Use for precondition and authorization checks that abort the operation.