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
An input or argument was the wrong type or shape for the operation.
The type was valid but the value is degenerate for the operation (for example, a zero divisor).
A string was the right type but could not be parsed (for example, a malformed date or percent sequence).
A <, <=, >, or >= comparison received type-mismatched operands and evaluated to false.
The template referenced a name the context or environment does not provide.
A partial's render nesting exceeded the configured maximum depth and the over-deep partial was abandoned.
An inline partial block defined the same name more than once; the last definition wins.
Properties
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.
Returns a representation of an immutable list of all enum entries, in the order they're declared.
the severity that every event of this category reports.
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.