Exception: Nero::ParseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ParseError

Returns a new instance of ParseError.



17
18
19
20
# File 'lib/nero/error.rb', line 17

def initialize(errors)
  @errors = errors
  super(errors.map(&:message).join(", "))
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



15
16
17
# File 'lib/nero/error.rb', line 15

def errors
  @errors
end