Exception: Nero::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- Nero::ParseError
- Defined in:
- lib/nero/error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ParseError
constructor
A new instance of ParseError.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
15 16 17 |
# File 'lib/nero/error.rb', line 15 def errors @errors end |