Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adds three more CXs refs #1268
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| =begin pod | ||
| =TITLE role CX::Last | ||
| =SUBTITLE Last control exception | ||
| role CX::Last does X::Control { } | ||
| A L<control exception|/language/exceptions#Control_exceptions> that is thrown | ||
| when C<last> is called; since Rakudo 2019.03, C<throw>ing an C<X::Control> | ||
| object raises a control exception which is caught by the L<CONTROL | ||
| phaser|/language/phasers#CONTROL> instead of L<CATCH|/language/phasers#CATCH>. | ||
| =head1 Methods | ||
| =head2 method message | ||
| Defined as: | ||
| method message() | ||
| Returns "<last control exception>". Since this type of exception is to be | ||
| consumed by type and not really by the content of the message, this is a generic | ||
| message, similar to all other C<CX::*> exceptions. | ||
| =end pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| =begin pod | ||
| =TITLE role CX::Redo | ||
| =SUBTITLE Redo control exception | ||
| role CX::Redo does X::Control { } | ||
| A L<control exception|/language/exceptions#Control_exceptions> thrown when | ||
| C<redo> is called; since Rakudo 2019.03, C<throw>ing an C<X::Control> object | ||
| raises a control exception which is caught by the L<CONTROL | ||
| phaser|/language/phasers#CONTROL> instead of L<CATCH|/language/phasers#CATCH>. | ||
| =head1 Methods | ||
| =head2 method message | ||
| Defined as: | ||
| method message() | ||
| Returns "<redo control exception>". | ||
| =end pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| =begin pod | ||
| =TITLE role CX::Take | ||
| =SUBTITLE Take control exception | ||
| role CX::Take does X::Control { } | ||
| A L<control exception|/language/exceptions#Control_exceptions> triggered by | ||
| C<take>; since Rakudo 2019.03, C<throw>ing an C<X::Control> object raises a | ||
| control exception which is caught by the L<CONTROL | ||
| phaser|/language/phasers#CONTROL> instead of L<CATCH|/language/phasers#CATCH>. | ||
| =head1 Methods | ||
| =head2 method message | ||
| Defined as: | ||
| method message() | ||
| Returns "<take control exception>". | ||
| =end pod |