Exception: SyncwiseApi::Errors::JSONParseError
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::JSONParseError
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ JSONParseError
constructor
A new instance of JSONParseError.
Constructor Details
#initialize(error) ⇒ JSONParseError
Returns a new instance of JSONParseError.
31 32 33 34 |
# File 'lib/syncwise_api/errors.rb', line 31 def initialize(error) @error = error super("Error parsing JSON: #{@error}") end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
36 37 38 |
# File 'lib/syncwise_api/errors.rb', line 36 def error @error end |