-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 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,33 @@ | ||
=begin pod | ||
=TITLE class X::Phaser::PrePost | ||
class X::Phaser::PrePost is Exception { } | ||
Thrown when the condition inside a C<PRE> or C<POST> phaser evaluate to a | ||
false value. | ||
For example | ||
sub f($x) { PRE { $x ~~ Int } } | ||
f "foo"; | ||
Dies with | ||
Precondition '{ $x ~~ Int }' failed | ||
=head1 Methods | ||
=head2 phaser | ||
method phaser() returns Str:D | ||
Returns the name of the failed phaser, C<"PRE"> or C<"POST">. | ||
=head2 condition | ||
method condition() returns Str:D | ||
Returns the part of the source code that describes the phaser condition. | ||
=end pod |