Skip to main content

uniac.LoadError

Extends RuntimeError. Raised by load when:
  • spec_cls is not a class, or not a NodeSpec subclass.
  • An __init__ parameter has no env var and no default.
  • An init parameter’s annotated type is unsupported (anything other than str | int | float | bool).
  • Env-var coercion fails (e.g., "abc" for an int parameter).

uniac.reader.spec.UniacValidationError

Extends Exception. Raised by NodeSpec._uniac_validate() (see NodeSpec) when an annotated Node slot is unset or holds the wrong type. Both are raised during load() and signal wiring or configuration bugs that should fail loudly at startup rather than at first request.