We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a74aea commit 9326575Copy full SHA for 9326575
doc/Type/Failure.pod6
@@ -24,6 +24,20 @@ failure to throw.
24
25
=head1 Methods
26
27
+=head mothod new
28
+
29
+Defined as:
30
+ method new(Failure:D: $payload --> Failure)
31
32
+Returns a new C<Failure> instance with the given payload. The latter can be
33
+either an C<Exception> or a payload for an C<Exception>. A typical payload
34
+would be a C<Str> with an error message. A list of payloads is also excepted.
35
36
+ my $e = Failure.new(now.DateTime, 'WELP‼');
37
+ say $e;
38
+ CATCH{ default { say .^name, ': ', .Str } }
39
+ # OUTPUT: «X::AdHoc: 2017-09-10T11:56:05.477237ZWELP‼»
40
41
=head2 method handled
42
43
Defined as:
0 commit comments