Exception: SyncwiseApi::Errors::JSONParseError

Inherits:
SyncwiseError show all
Defined in:
lib/syncwise_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



36
37
38
# File 'lib/syncwise_api/errors.rb', line 36

def error
  @error
end