Exception: JSONAPI::Exceptions::Errors
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(errors, error_object_overrides = {}) ⇒ Errors
constructor
A new instance of Errors.
Methods inherited from Error
Constructor Details
#initialize(errors, error_object_overrides = {}) ⇒ Errors
Returns a new instance of Errors.
22 23 24 25 26 27 28 29 30 |
# File 'lib/jsonapi/exceptions.rb', line 22 def initialize(errors, error_object_overrides = {}) @errors = errors @errors.each do |error| error.update_with_overrides(error_object_overrides) end super(error_object_overrides) end |
Instance Method Details
#errors ⇒ Object
32 33 34 |
# File 'lib/jsonapi/exceptions.rb', line 32 def errors @errors end |