Skip to content

Failure propagation

Core reports parser, runtime, type-check, and worker failures as sealed MontyError values. Look in core's public error source for the current subclasses and their fields.

_endsSession selects terminal errors.

MontyBridge reports a failed feed as BridgeRunError. The event stream and the execution result provide different recovery paths.

Code that needs typed recovery should use ExecutionHandle. Code that renders an event stream should use BridgeRunError.

Host and OS handlers define their failure behavior through ExternalException and OsCallNotHandledException.

See extractBridgeResult.