Exception: Remotely::NonJsonResponseError

Inherits:
RemotelyError
  • Object
show all
Defined in:
lib/remotely.rb

Constant Summary collapse

MESSAGE =
"Received an HTML response. Expected JSON."

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RemotelyError

#message

Constructor Details

#initialize(body) ⇒ NonJsonResponseError

Returns a new instance of NonJsonResponseError.



37
38
39
# File 'lib/remotely.rb', line 37

def initialize(body)
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



35
36
37
# File 'lib/remotely.rb', line 35

def body
  @body
end