Exception: SocialPlus::WebApi::HttpResponseError
- Defined in:
- lib/social_plus/web_api/http_response_error.rb
Overview
An Exception class raised when SocialPlus Web API reports http response error
Constant Summary
Constants inherited from ApiError
Instance Attribute Summary
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(response) ⇒ HttpResponseError
constructor
A new instance of HttpResponseError.
Methods inherited from ApiError
Constructor Details
#initialize(response) ⇒ HttpResponseError
Returns a new instance of HttpResponseError.
10 11 12 13 14 15 |
# File 'lib/social_plus/web_api/http_response_error.rb', line 10 def initialize(response) super( 'message' => response., 'code' => response.code.to_i ) end |