Exception: GustoEmbedded::Models::Errors::UnprocessableEntityError
- Inherits:
-
StandardError
- Object
- StandardError
- GustoEmbedded::Models::Errors::UnprocessableEntityError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/errors/unprocessableentityerror.rb
Overview
Unprocessable Entity
This may happen when the body of your request contains errors such as ‘invalid_attribute_value`, or the request fails due to an `invalid_operation`. See the [Errors Categories](docs.gusto.com/embedded-payroll/docs/error-categories) guide for more details.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(errors:) ⇒ UnprocessableEntityError
constructor
A new instance of UnprocessableEntityError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(errors:) ⇒ UnprocessableEntityError
Returns a new instance of UnprocessableEntityError.
22 23 24 |
# File 'lib/gusto_embedded/models/errors/unprocessableentityerror.rb', line 22 def initialize(errors:) @errors = errors end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 |
# File 'lib/gusto_embedded/models/errors/unprocessableentityerror.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @errors == other.errors true end |