Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Grammar / clarification
  • Loading branch information
zoffixznet committed Nov 25, 2015
1 parent 910fa06 commit 9bb938f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/exceptions.pod
Expand Up @@ -60,13 +60,13 @@ One can also explicitly throw exceptions via the C<.throw> method on an
C<Exception> object.
This example throws an C<AdHoc> exception, catches it and allows the code
to continue from the point of the exception.
to continue from the point of the exception by calling the C<.resume> method.
{
X::AdHoc.new(:payload<foo>).throw;
"OHAI".say;
CATCH {
when X::AdHoc { $_.resume }
when X::AdHoc { .resume }
}
}
"OBAI".say;
Expand All @@ -86,7 +86,7 @@ exception's payload is passed on to the backtrace printing mechanism.
#!> in block <unit> at /tmp/FbtB60dxVO:1
This example doesn't resume from the point of the exception, however
continues after the enclosing block, since the exception was caught and
it continues after the enclosing block, since the exception was caught, and
control continues after the C<CATCH> block.
{
Expand Down

0 comments on commit 9bb938f

Please sign in to comment.