Methods

DataMapperRest::ResourceInvalid

422 Unprocessable Entity

Attributes

body[R]

On this case, we could try to retrieve the validation_errors from message body:

Public Class Methods

new(response, message = nil) click to toggle source
# File lib/dm-rest-adapter/exceptions.rb, line 51
def initialize(response, message = nil)
  super(response, message)
  @body = response.body unless response.body.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.