pub enum ErrorCode {
Show 13 variants
ParseError,
IoError,
ValidationError,
StateError,
WindowCreateError,
EventLoopError,
InternalError,
HostError,
HostBindError,
HostViewerError,
UiNotFound,
UnsupportedType,
WorkflowError,
}Expand description
Stable error codes for scripting consumers of Wyvern stderr JSON.
These codes are additive alongside the historical error slug field
(parse, validation, …). Consumers that only check error remain valid;
new consumers should prefer code for stable branching.
Variants§
ParseError
JSON text could not be parsed (CLI load stage).
IoError
File or stdin read failed.
ValidationError
Schema or field-level validation failure.
StateError
Mode/lifecycle state failure (e.g. action outside --interactive).
WindowCreateError
Native window or webview construction failed (legacy wry stack).
EventLoopError
Event loop creation or run failed (legacy wry stack).
InternalError
Stdout/stderr JSON serialization failed at the CLI emit boundary (REQ-0078).
HostError
Generic host failure (host_error / exit 6).
HostBindError
TCP bind failed (host_bind / exit 7).
HostViewerError
Viewer launch / discovery failed (host_viewer / exit 6).
UiNotFound
Packaged UI root or template missing (host_error / exit 6).
UnsupportedType
Dialog type not yet on the host matrix (host_error / exit 6).
WorkflowError
Workflow pre/post or next_wizard chain failure (workflow / exit 9).