Test::BDD::Cucumber::Errors - Consistently formatted errors
Consistently formatted errors
This module is not intended to help throw error classes, simply to provide helpers for consistently formatting certain errors. Most of the errors thrown in practice are errors with the input test scenarios, and it's helpful to have the location of the error and context when debugging those. Perhaps in the future these can return error objects.
use Test::BDD::Cucumber::Errors qw/parse_error_from_line/; parse_error_from_line( "Your input was bad", $line );
Generates a parser error from a Test::BDD::Cucumber::Model::Line object, and error reason:
parse_error_from_line( "Your input was bad", $line );
Copyright 2014, Peter Sergeant; Licensed under the same terms as Perl