Exception: Remotely::NonJsonResponseError
- Inherits:
-
RemotelyError
- Object
- StandardError
- RemotelyError
- Remotely::NonJsonResponseError
- Defined in:
- lib/remotely.rb
Constant Summary collapse
- MESSAGE =
"Received an HTML response. Expected JSON."
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ NonJsonResponseError
constructor
A new instance of NonJsonResponseError.
Methods inherited from RemotelyError
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/remotely.rb', line 35 def body @body end |