Documentation for method handled
assembled from the following pages:
Class: Failure §
From Failure
(Failure) method handled §
Defined as:
method handled(Failure: --> Bool) is rw
Returns True
for handled failures, False
otherwise.
sub f() ; my = f; say .handled; # OUTPUT: «False»
The handled
method is an lvalue, see routine trait is rw
, which means you can also use it to set the handled state:
sub f() my = f;.handled = True;say .handled; # OUTPUT: «True»