Exception: Shaf::Errors::UnprocessableEntityError
- Inherits:
-
ServerError
- Object
- StandardError
- Shaf::Error
- ServerError
- Shaf::Errors::UnprocessableEntityError
- Defined in:
- lib/shaf/errors.rb
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
- #http_status ⇒ Object
-
#initialize(msg = nil) ⇒ UnprocessableEntityError
constructor
A new instance of UnprocessableEntityError.
Constructor Details
#initialize(msg = nil) ⇒ UnprocessableEntityError
Returns a new instance of UnprocessableEntityError.
106 107 108 109 |
# File 'lib/shaf/errors.rb', line 106 def initialize(msg = nil) msg ||= "The server can not process this request" super(msg, code: "UNPROCESSABLE_ENTITY", title: "Request can not be processed") end |
Instance Method Details
#http_status ⇒ Object
102 103 104 |
# File 'lib/shaf/errors.rb', line 102 def http_status 422 end |