stormlog.infer.errors
Errors that tell the inference CLI which contract exit code a failure gets.
Both subclass ValueError, so code that catches ValueError from the
library keeps working.
Exceptions
An input file the command cannot read; the CLI exits |
|
A setting the command cannot use; the CLI exits |
|
Strict token counts were requested but no tokenizer backend loads. |
- exception stormlog.infer.errors.InferUsageError[source]
Bases:
ValueErrorA setting the command cannot use; the CLI exits
USAGE(2).
- exception stormlog.infer.errors.InferInputError[source]
Bases:
ValueErrorAn input file the command cannot read; the CLI exits
INVALID_INPUT(5).
Bases:
InferUsageError,RuntimeErrorStrict token counts were requested but no tokenizer backend loads.
A usage error for the CLI (exit 2); it is still a
RuntimeError, which is whatbuild_token_counterraised before, so existing callers that catch that keep working.