Exception: PartnerApi::Errors::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/partner_api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code: nil, message:) ⇒ RequestError

Returns a new instance of RequestError.



12
13
14
15
# File 'lib/partner_api/errors.rb', line 12

def initialize(code: nil, message:)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/partner_api/errors.rb', line 10

def code
  @code
end