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

exception_or_panic

exception_or_panic

(T 
type
:
Type, R 
type
:
Type, f Function R)
 => 
R
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.095dev (2025-08-15 12:02:22 GIT hash 301b5b75e77076d091b38f555473f9f0e31e5b5c built by fridi@fzen)