Exception: Strobe::JSONParseError

Inherits:
NotifiableError show all
Defined in:
lib/strobe/connection.rb

Instance Attribute Summary

Attributes inherited from NotifiableError

#data

Instance Method Summary collapse

Constructor Details

#initialize(error = nil, body = nil) ⇒ JSONParseError

Returns a new instance of JSONParseError.



8
9
10
11
12
# File 'lib/strobe/connection.rb', line 8

def initialize(error = nil, body = nil)
  set_backtrace(error.backtrace)
  data = { :raw_body => body, :original_message => error.message }
  super("Error parsing JSON from server", data)
end