handled
ErrorsCollection

handled

Synthesised documentation from type/Failure

From type/Failure

See Original text in context

method handled(Failure:D: --> Bool:Dis rw

Returns True for handled failures, False otherwise.

sub f() { fail }my $v = fsay $v.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() { fail }
my $v = f;
$v.handled = True;
say $v.handled# OUTPUT: «True␤»