Standard library / Errors · on the one-page reference

Errors

Stable — lowers to the runtime's native error-union/catch machinery, its primary error-handling mechanism.

APINotes
Error("message") · throw ethrow an error value
try { … } catch (e) { … } finally { … }e.message holds the message