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.097dev (GIT hash 7935358ec8b7743224ffa00b87fbe7bbf70dc69e)
last changed: 2026-06-12