Exception: RemoteResource::PartyQuery::ResponseException
- Inherits:
-
StandardError
- Object
- StandardError
- RemoteResource::PartyQuery::ResponseException
- Defined in:
- lib/remote_resource/concerns/party_query.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, msg, &block) ⇒ ResponseException
constructor
A new instance of ResponseException.
Constructor Details
#initialize(code, msg, &block) ⇒ ResponseException
Returns a new instance of ResponseException.
28 29 30 31 |
# File 'lib/remote_resource/concerns/party_query.rb', line 28 def initialize(code, msg, &block) @code = code super(["HTTP code: #{code}", msg].join('. '), &block) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
27 28 29 |
# File 'lib/remote_resource/concerns/party_query.rb', line 27 def code @code end |