Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

try

eff.fallible.type.try

try -- run code and handle fault of type `fallible.this`.

try is a type feature that can be called on any child of `fallible`
to run the code given as an argument and handle an error using the
`Unary` provided to `catch`.

This enables Java-like try-catch syntax as follows


or even


Note that the code is not executed unless `.catch` or `infix ||` is applied
to the result of the call to `try`.

Type Parameters

0.098dev (GIT hash 56a1cfe90e6276a3f8a774343c24ed2b7ec4ea76)
last changed: 2026-06-25