Exception: Shaf::Errors::ConflictError

Inherits:
ServerError show all
Defined in:
lib/shaf/errors.rb

Instance Attribute Summary

Attributes inherited from ServerError

#code, #title

Instance Method Summary collapse

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_statusObject



79
80
81
# File 'lib/shaf/errors.rb', line 79

def http_status
  409
end