Exception: AliExpress::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, message:, response:) ⇒ ResponseError

Returns a new instance of ResponseError.



5
6
7
8
9
# File 'lib/aliexpress/response_error.rb', line 5

def initialize(code:, message:, response:)
  @code     = code
  @message  = message
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/aliexpress/response_error.rb', line 3

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/aliexpress/response_error.rb', line 3

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/aliexpress/response_error.rb', line 3

def response
  @response
end