Exception: Shark::UnprocessableEntity

Inherits:
ClientError show all
Defined in:
lib/shark/error.rb

Instance Attribute Summary

Attributes inherited from ApiError

#code, #env

Instance Method Summary collapse

Methods inherited from ApiError

#body, #initialize, #url

Constructor Details

This class inherits a constructor from Shark::ApiError

Instance Method Details

#errorsObject



44
45
46
# File 'lib/shark/error.rb', line 44

def errors
  body['errors'] || {}
end

#messageObject



48
49
50
# File 'lib/shark/error.rb', line 48

def message
  errors.to_json
end