Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

exception_or_panic

exception_or_panic

(T 
type
, R 
type
, f Function R)
 => 
R
[Contains abstract features]
convenience routine to create a new instance of 'exception T' and run 'f' in
it. Return the result of 'f' directly or panic in case 'f' calls
'(exception T).env.raise'.

Type Parameters

0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)