xnano.core.exceptions
xnano.core.exceptions
¶
xnano.core.exceptions
Errors raised by runtimes, hooks, fields, and optional components.
Classes:
-
Exit–Request that the active runtime stop.
-
HookError–Report a hook failure while preserving its original cause.
-
FieldValidationError–Report strict validation failure for a grid field.
-
TerminalNotActiveError–Report an operation that requires an active live runtime.
-
ExtraNotInstalledError–Report a missing optional dependency.
Exit
¶
HookError
¶
HookError(hook_name: str, cause: BaseException)
Bases: RuntimeError
Report a hook failure while preserving its original cause.
Source code in xnano/core/exceptions.py
FieldValidationError
¶
FieldValidationError(
field_name: str,
validation_error: "PydanticValidationError",
)
Bases: ValueError
Report strict validation failure for a grid field.
Source code in xnano/core/exceptions.py
TerminalNotActiveError
¶
Bases: RuntimeError
Report an operation that requires an active live runtime.
Source code in xnano/core/exceptions.py
ExtraNotInstalledError
¶
ExtraNotInstalledError(extra: str)
Bases: RuntimeError
Report a missing optional dependency.