Class Citrus::SyntaxError

  1. lib/citrus.rb
Parent: Citrus::Error

Raised when Citrus::File.parse fails.

Methods

public class

  1. new

Public class methods

new (error)

The error given here is an instance of Citrus::ParseError.

[show source]
     # File lib/citrus.rb, line 162
162:     def initialize(error)
163:       message = "Malformed Citrus syntax on line #{error.line_number}"
164:       message << " at offset #{error.line_offset}\n#{error.detail}"
165: 
166:       super(message)
167:     end