Exception: Cucumber::CucumberExpressions::CantEscape
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::CantEscape
- Defined in:
- lib/cucumber/cucumber_expressions/errors.rb
Instance Method Summary collapse
-
#initialize(expression, index) ⇒ CantEscape
constructor
A new instance of CantEscape.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(expression, index) ⇒ CantEscape
Returns a new instance of CantEscape.
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/cucumber/cucumber_expressions/errors.rb', line 65 def initialize(expression, index) super( ( index, expression, point_at(index), "Only the characters '{', '}', '(', ')', '\\', '/' and whitespace can be escaped", "If you did mean to use an '\\' you can use '\\\\' to escape it" ) ) end |