Exception: SyncwiseApi::Errors::JSONEncodeError
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::JSONEncodeError
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ JSONEncodeError
constructor
A new instance of JSONEncodeError.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
45 46 47 |
# File 'lib/syncwise_api/errors.rb', line 45 def object @object end |