Exception: HookSniff::UnprocessableEntityError
- Defined in:
- lib/hooksniff/errors.rb
Overview
422 Unprocessable Entity
Instance Attribute Summary collapse
-
#validation_errors ⇒ Object
readonly
Returns the value of attribute validation_errors.
Attributes inherited from ApiError
#code, #response_body, #response_headers
Instance Method Summary collapse
-
#initialize(validation_errors: [], response_headers: {}, response_body: nil) ⇒ UnprocessableEntityError
constructor
A new instance of UnprocessableEntityError.
Methods inherited from ApiError
Constructor Details
#initialize(validation_errors: [], response_headers: {}, response_body: nil) ⇒ UnprocessableEntityError
Returns a new instance of UnprocessableEntityError.
76 77 78 79 |
# File 'lib/hooksniff/errors.rb', line 76 def initialize(validation_errors: [], response_headers: {}, response_body: nil) super(code: 422, response_headers: response_headers, response_body: response_body) @validation_errors = validation_errors end |
Instance Attribute Details
#validation_errors ⇒ Object (readonly)
Returns the value of attribute validation_errors.
74 75 76 |
# File 'lib/hooksniff/errors.rb', line 74 def validation_errors @validation_errors end |