Skip to content

Commit

Permalink
X::Phaser::PrePost
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 23, 2012
1 parent ea92fc5 commit e5e4199
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lib/X/Phaser/PrePost.pod
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

0 comments on commit e5e4199

Please sign in to comment.