Exception: HTTP::RestClient::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/http/rest_client/response_error.rb

Overview

Client default response exception class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, data) ⇒ ResponseError

Class constructor

Parameters:

  • message (String)

    the error details

  • data (Hash)

    the error data



16
17
18
19
# File 'lib/http/rest_client/response_error.rb', line 16

def initialize(message, data)
  super(message)
  @response_data = data
end

Instance Attribute Details

#response_dataHash (readonly)

Error additional data

Returns:

  • (Hash)


8
9
10
# File 'lib/http/rest_client/response_error.rb', line 8

def response_data
  @response_data
end