Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
All docs
Docs/ API Reference/ RunResult/ raise_on_error
RunResult· method

RunResult.raise_on_error

re-raises the captured exception if the run failed

Python
raise_on_error() -> RunResult

Returns RunResult — self when the run succeeded

Example#

Python
Engine().run(pipeline).raise_on_error()   # the one-liner for tests

Notes#

Raises the run's captured exception when ok is False; otherwise returns self so it chains — Engine().run(p).raise_on_error().output. This is the canonical assertion for tests and scripts that must fail loudly.

See also#

API: ok · print · output

By LSD Team · Last updated Jul 17, 2026 Ask on Discord View as Markdown