Exception: ActiveCouch::UpdateConflict

Inherits:
ClientError show all
Defined in:
lib/active_couch/connection.rb

Overview

412 Precondition Failed - this is returned when there is an update conflict (usually means revisions don’t match).

Instance Attribute Summary

Attributes inherited from ConnectionError

#response

Instance Method Summary collapse

Methods inherited from ConnectionError

#initialize

Constructor Details

This class inherits a constructor from ActiveCouch::ConnectionError

Instance Method Details

#to_sObject

:nodoc:



38
39
40
# File 'lib/active_couch/connection.rb', line 38

def to_s
  "Failed with #{response.code} #{response.message if response.respond_to?(:message)}. Body: #{response.body}"
end