Exception: RestClientWrapper::RestClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rest_client_wrapper/exceptions.rb

Overview

RestClientError

Direct Known Subclasses

RestClientNotSuccessful

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, response = nil, error = nil) ⇒ RestClientError

Returns a new instance of RestClientError.



26
27
28
29
30
# File 'lib/rest_client_wrapper/exceptions.rb', line 26

def initialize(message=nil, response=nil, error=nil)
  @response = response
  @error = error
  super(message)
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



24
25
26
# File 'lib/rest_client_wrapper/exceptions.rb', line 24

def error
  @error
end

#responseObject (readonly)

Returns the value of attribute response.



24
25
26
# File 'lib/rest_client_wrapper/exceptions.rb', line 24

def response
  @response
end