WriteOutcome

data class WriteOutcome(val written: List<Path>, val errors: List<String>, val skipped: Boolean = false)(source)

Result of a render call. Lets the caller surface per-format successes and errors in one notification pass, and locate the HTML output (if any) for host-side browser-open.

Constructors

Link copied to clipboard
constructor(written: List<Path>, errors: List<String>, skipped: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard

Convenience accessor — the HTML file in written (if any). Hosts that want to open the HTML in a browser after a successful render check this and dispatch through their own platform channel. Returns null when HTML was not among the requested formats or its write failed.

Link copied to clipboard

true when the renderer deliberately skipped writing because the user picked FileHandlingPolicy.SKIP_IF_EXISTS and a conflicting file already existed. Distinct from a failure; callers should not flip the row state to FAILED on a skip.

Link copied to clipboard