Exception: CompEx::ParsingError

Inherits:
Error
  • Object
show all
Defined in:
lib/compex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ParsingError

Returns a new instance of ParsingError.



32
33
34
35
# File 'lib/compex.rb', line 32

def initialize(errors)
  @errors = errors
  super("Errors were detected parsing the template: #{@errors.map { it[:error] }.join(", ")}")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



30
31
32
# File 'lib/compex.rb', line 30

def errors
  @errors
end