Exception: SyncwiseApi::Errors::JSONEncodeError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ JSONEncodeError

Returns a new instance of JSONEncodeError.



40
41
42
43
# File 'lib/syncwise_api/errors.rb', line 40

def initialize(object)
  @object = object
  super("Error encoding object into JSON. Object: #{@object.inspect}")
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



45
46
47
# File 'lib/syncwise_api/errors.rb', line 45

def object
  @object
end