Category

The kind of soft failure, each carrying an inherent severity and a stable code.

Stability note: new categories may be added in minor releases as the engine learns to report new soft-failure conditions. Consumer when expressions over this enum should include an else branch so they continue to compile without modification when new entries arrive.

Entries

Link copied to clipboard

An input or argument was the wrong type or shape for the operation.

Link copied to clipboard

The type was valid but the value is degenerate for the operation (for example, a zero divisor).

Link copied to clipboard

A string was the right type but could not be parsed (for example, a malformed date or percent sequence).

Link copied to clipboard

A <, <=, >, or >= comparison received type-mismatched operands and evaluated to false.

Link copied to clipboard

The template referenced a name the context or environment does not provide.

Link copied to clipboard

A search transform (find / find_index) found no matching element.

Link copied to clipboard

A partial's render nesting exceeded the configured maximum depth and the over-deep partial was abandoned.

Link copied to clipboard

An inline partial block defined the same name more than once; the last definition wins.

Properties

Link copied to clipboard

the stable conformance error code for this category (e.g. "KB-5001"). The code is stable across kBars versions and is the portable identifier used in conformance fixture JSON files; human-readable messages are non-normative and may change between releases. See the kBars conformance error-code registry for the full list.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

the severity that every event of this category reports.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.