Exception: OctaSpace::ProvisionRejectedError
- Defined in:
- lib/octaspace/errors.rb
Overview
Domain-level rejection where transport succeeded but the provision request was rejected by the API payload contract.
Instance Attribute Summary collapse
-
#rejections ⇒ Object
readonly
Returns the value of attribute rejections.
Attributes inherited from Error
#request_id, #response, #status
Instance Method Summary collapse
-
#initialize(message = nil, response: nil, rejections: []) ⇒ ProvisionRejectedError
constructor
A new instance of ProvisionRejectedError.
Constructor Details
#initialize(message = nil, response: nil, rejections: []) ⇒ ProvisionRejectedError
Returns a new instance of ProvisionRejectedError.
32 33 34 35 |
# File 'lib/octaspace/errors.rb', line 32 def initialize( = nil, response: nil, rejections: []) @rejections = Array(rejections) super( || (@rejections), response: response) end |
Instance Attribute Details
#rejections ⇒ Object (readonly)
Returns the value of attribute rejections.
30 31 32 |
# File 'lib/octaspace/errors.rb', line 30 def rejections @rejections end |