KbException
Base class for all kBars runtime exceptions.
Concrete subtypes:
KbParseException — the template source could not be parsed.
KbRenderException — the template parsed successfully but a fatal error occurred at render time (e.g. an unknown transform name, a malformed
assigntarget).
Callers that want to catch all kBars exceptions should catch KbException; callers that need to distinguish parse failures from render failures should catch the concrete subtypes.
When location is non-null, it is folded into message so that even a bare stack trace identifies the offending template position rather than pointing only at kBars internals.
Parameters
the underlying exception that describes the error.
the template position the failure is attributable to, or null when none could be determined.
the stable conformance error code for this failure (e.g. "KB-2001"), or "KB-0000" for unclassified failures. This code is stable across kBars versions and is the portable identifier used in conformance fixture JSON files; human-readable messages are non-normative. See the kBars conformance error-code registry for the full list.