Exception: TemplateParser::ProcessingErrors

Inherits:
StandardError
  • Object
show all
Defined in:
lib/template_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, errors) ⇒ ProcessingErrors

Returns a new instance of ProcessingErrors.



14
15
16
17
# File 'lib/template_parser.rb', line 14

def initialize(message, errors)
  @errors = errors
  super(message + "\n\n" + errors.map { |e| e.message }.compact.join("\n-----------------------------------------------------------\n"))
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



12
13
14
# File 'lib/template_parser.rb', line 12

def errors
  @errors
end