Documentation for method exception

Documentation for method exception, assembled from the following types:

class Failure

From Failure

(Failure) method exception

Defined as:

method exception(Failure:D: --> Exception)

Returns the Exception object that the failure wraps.

sub f() { fail }my $v = f$v.Exception;
CATCH { default { put .^name''.Str } };
# OUTPUT: «X::AdHoc: Failed␤»