Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adds three more CXs refs #1268
  • Loading branch information
JJ committed Jun 24, 2019
1 parent c5f83a8 commit 888fa47
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
26 changes: 26 additions & 0 deletions doc/Type/CX/Last.pod6
@@ -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
24 changes: 24 additions & 0 deletions doc/Type/CX/Redo.pod6
@@ -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
24 changes: 24 additions & 0 deletions doc/Type/CX/Take.pod6
@@ -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

0 comments on commit 888fa47

Please sign in to comment.