Exception: Modern::Errors::UnprocessableEntity

Inherits:
WebError
  • Object
show all
Defined in:
lib/modern/errors/web_errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Recognized content-type of body, but could not parse it.") ⇒ UnprocessableEntity

Returns a new instance of UnprocessableEntity.



74
75
76
# File 'lib/modern/errors/web_errors.rb', line 74

def initialize(msg = "Recognized content-type of body, but could not parse it.")
  super(msg)
end

Instance Method Details

#statusObject



78
79
80
# File 'lib/modern/errors/web_errors.rb', line 78

def status
  422
end