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 e3edec2 commit 0cfb87fCopy full SHA for 0cfb87f
doc/Language/exceptions.pod6
@@ -17,13 +17,16 @@ backtrace printer.
17
18
=head1 Ad hoc exceptions
19
20
-Ad hoc exceptions can be used by calling C<die> with
21
-a description of the error.
+Ad hoc exceptions can be used by calling L<die|/routine/die> with
+a description of the error:
22
23
die "oops, something went wrong";
24
25
# RESULT: «oops, something went wrong in block <unit> at my-script.p6:1»
26
27
+
28
+It is worth noting that C<die> prints the error message to the standard error C<$*ERR>.
29
30
=head1 Typed exceptions
31
32
Typed exceptions provide more information about the error stored
0 commit comments