Exception: Protip::UnprocessableEntityError

Inherits:
Error
  • Object
show all
Defined in:
lib/protip/error.rb

Instance Attribute Summary

Attributes inherited from Error

#request, #response

Instance Method Summary collapse

Methods inherited from Error

#initialize, #inspect

Constructor Details

This class inherits a constructor from Protip::Error

Instance Method Details

#errorsObject

Get the parsed errors object from a 422 response.

Returns:

  • ::Protip::Messages::Errors



36
37
38
# File 'lib/protip/error.rb', line 36

def errors
  ::Protip::Messages::Errors.decode response.body
end