Exception: PartnerApi::Errors::RequestError
- Defined in:
- lib/partner_api/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code: nil, message:) ⇒ RequestError
constructor
A new instance of RequestError.
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() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/partner_api/errors.rb', line 10 def code @code end |