Exception: Protip::UnprocessableEntityError
- Defined in:
- lib/protip/error.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#errors ⇒ Object
Get the parsed errors object from a 422 response.
Methods inherited from Error
Constructor Details
This class inherits a constructor from Protip::Error
Instance Method Details
#errors ⇒ Object
Get the parsed errors object from a 422 response.
36 37 38 |
# File 'lib/protip/error.rb', line 36 def errors ::Protip::Messages::Errors.decode response.body end |