Exception: Shaf::Errors::ConflictError
- Inherits:
-
ServerError
- Object
- StandardError
- Shaf::Error
- ServerError
- Shaf::Errors::ConflictError
- Defined in:
- lib/shaf/errors.rb
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
- #http_status ⇒ Object
-
#initialize(msg = nil) ⇒ ConflictError
constructor
A new instance of ConflictError.
Constructor Details
#initialize(msg = nil) ⇒ ConflictError
Returns a new instance of ConflictError.
83 84 85 86 |
# File 'lib/shaf/errors.rb', line 83 def initialize(msg = nil) msg ||= "The request conflicts with another resource" super(msg, code: "CONFLICT", title: "Conflicting resource") end |
Instance Method Details
#http_status ⇒ Object
79 80 81 |
# File 'lib/shaf/errors.rb', line 79 def http_status 409 end |