Exception: Taobao::ApiError

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

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ApiError

Returns a new instance of ApiError.



2
3
4
# File 'lib/taobao/exceptions/api_error.rb', line 2

def initialize(response)
  @msg = response[:error_response][:msg]
end

Instance Method Details

#to_sObject



6
7
8
# File 'lib/taobao/exceptions/api_error.rb', line 6

def to_s
  @msg
end