Exception: Invoq::ApiError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, status:, code: nil, fields: nil, meta: nil, payload: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status:, code: nil, fields: nil, meta: nil, payload: nil) ⇒ ApiError
Returns a new instance of ApiError.
16 17 18 19 20 21 22 |
# File 'lib/invoq/errors.rb', line 16 def initialize(, status:, code: nil, fields: nil, meta: nil, payload: nil) super(, payload: payload) @status = status @code = code @fields = fields @meta = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
14 15 16 |
# File 'lib/invoq/errors.rb', line 14 def code @code end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
14 15 16 |
# File 'lib/invoq/errors.rb', line 14 def fields @fields end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
14 15 16 |
# File 'lib/invoq/errors.rb', line 14 def @meta end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
14 15 16 |
# File 'lib/invoq/errors.rb', line 14 def status @status end |