Exception: RubyJsonParser::SyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyJsonParser::SyntaxError
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_json_parser.rb
Overview
JSON syntax error
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ SyntaxError
Returns a new instance of SyntaxError.
27 28 29 |
# File 'lib/ruby_json_parser.rb', line 27 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
24 25 26 |
# File 'lib/ruby_json_parser.rb', line 24 def errors @errors end |
Instance Method Details
#message ⇒ Object
32 33 34 |
# File 'lib/ruby_json_parser.rb', line 32 def @errors.join('; ') end |