Error due to a false return value of a PRE/POST phaser
is Exception
Thrown when the condition inside a PRE
or POST
phaser evaluate to a false value.
For example
sub f() ;f "foo";CATCH ;# OUTPUT: X::Phaser::PrePost: Precondition '{ $x ~~ Int }' failed«»
method phaser(--> Str)
Returns the name of the failed phaser, "PRE"
or "POST"
.
method condition(--> Str)
Returns the part of the source code that describes the phaser condition.