Exception: Rest::Wrappers::RestClientExceptionWrapper

Inherits:
HttpError show all
Defined in:
lib/rest/wrappers/rest_client_wrapper.rb

Instance Attribute Summary collapse

Attributes inherited from HttpError

#code, #msg, #options, #response

Instance Method Summary collapse

Methods inherited from HttpError

#to_s

Constructor Details

#initialize(ex) ⇒ RestClientExceptionWrapper

Returns a new instance of RestClientExceptionWrapper.



9
10
11
12
# File 'lib/rest/wrappers/rest_client_wrapper.rb', line 9

def initialize(ex)
  super(ex.response, ex.http_code)
  @ex = ex
end

Instance Attribute Details

#exObject (readonly)

Returns the value of attribute ex.



7
8
9
# File 'lib/rest/wrappers/rest_client_wrapper.rb', line 7

def ex
  @ex
end