Exception: ParserError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ParserError
- Defined in:
- lib/cfn-model/parser/parser_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(message, validation_errors = nil) ⇒ ParserError
constructor
A new instance of ParserError.
- #to_s ⇒ Object
Constructor Details
#initialize(message, validation_errors = nil) ⇒ ParserError
Returns a new instance of ParserError.
6 7 8 9 10 |
# File 'lib/cfn-model/parser/parser_error.rb', line 6 def initialize(, validation_errors=nil) super() @message = @errors = validation_errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
4 5 6 |
# File 'lib/cfn-model/parser/parser_error.rb', line 4 def errors @errors end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/cfn-model/parser/parser_error.rb', line 12 def to_s "#{@message}#{@errors.nil? ? '' : ':'}#{@errors.to_s}" end |