Exception: Strobe::JSONParseError
- Inherits:
-
NotifiableError
- Object
- StandardError
- StrobeError
- NotifiableError
- Strobe::JSONParseError
- Defined in:
- lib/strobe/connection.rb
Instance Attribute Summary
Attributes inherited from NotifiableError
Instance Method Summary collapse
-
#initialize(error = nil, body = nil) ⇒ JSONParseError
constructor
A new instance of JSONParseError.
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. } super("Error parsing JSON from server", data) end |