cx.* diagnostics
Owner: the cx spec (defs/cx.ts). The status is the code's own; the exit comes from its category (CATEGORIES). A warning or info code never sets the status or the exit.
| Code |
Category |
Severity |
Status |
Exit |
Retry |
Fix |
Args |
cx.arrow.misplaced |
type |
error |
400 |
2 |
no |
— |
— |
cx.cost.exceeds_use |
limit |
error |
422 |
2 |
no |
— |
use, class, cap, why |
cx.cycle |
type |
error |
400 |
2 |
no |
— |
loop |
cx.enum.unknown_value |
reference |
error |
400 |
2 |
no |
— |
enum, value, near |
cx.fault.div_zero |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fault.dst_gap |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fault.not_unique |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fault.out_of_range |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fault.overflow |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fault.series_too_long |
data |
error |
409 |
6 |
no |
— |
operand |
cx.fn.args_required |
reference |
error |
400 |
2 |
no |
— |
prop, params |
cx.fn.arity |
reference |
error |
400 |
2 |
no |
— |
fn, bound, min, max, got |
cx.invariant.reads_clock |
type |
error |
400 |
2 |
no |
— |
node |
cx.limit.depth |
limit |
error |
422 |
2 |
no |
— |
n, max |
cx.limit.inline_size |
limit |
error |
422 |
2 |
no |
— |
n, max |
cx.limit.list |
limit |
error |
422 |
2 |
no |
— |
n, max |
cx.limit.nodes |
limit |
error |
422 |
2 |
no |
— |
n, max |
cx.literal.invalid |
type |
error |
400 |
2 |
no |
— |
type, text |
cx.literal.text_invalid |
type |
error |
400 |
2 |
no |
— |
text, char |
cx.money.currency_mismatch |
type |
error |
400 |
2 |
no |
— |
left, right |
cx.money.currency_not_static |
type |
error |
400 |
2 |
no |
— |
collection, currency_path |
cx.money.rounding_required |
type |
error |
400 |
2 |
no |
— |
expr |
cx.name.ambiguous |
reference |
error |
400 |
2 |
no |
— |
name, levels |
cx.name.unknown |
reference |
error |
400 |
2 |
no |
— |
name, near, scope |
cx.null_compare |
type |
error |
400 |
2 |
no |
— |
expr |
cx.option_unwrapped |
type |
error |
400 |
2 |
no |
— |
expr, sink |
cx.scale_overflow |
type |
error |
400 |
2 |
no |
— |
scale |
cx.source.unpinned |
reference |
error |
400 |
2 |
no |
— |
type, why |
cx.syntax.not_cx |
syntax |
error |
400 |
2 |
no |
— |
form |
cx.syntax.too_long |
syntax |
error |
400 |
2 |
no |
— |
chars, max |
cx.syntax.unexpected |
syntax |
error |
400 |
2 |
no |
— |
found, expected |
cx.time.whole_minutes |
type |
error |
400 |
2 |
no |
— |
op |
cx.type.mismatch |
type |
error |
400 |
2 |
no |
— |
op, left, right, want |
cx.unit_mismatch |
type |
error |
400 |
2 |
no |
— |
left, right |
cx.unknown.blank |
state |
error |
409 |
5 |
no |
— |
operand |
cx.unknown.withheld |
policy |
error |
403 |
4 |
no |
— |
operand |
cx.use.binding_not_in_scope |
reference |
error |
400 |
2 |
no |
— |
binding, use |