class Tilia::Dav::Exception::ConflictingLock

ConflictingLock

Similar to the Locked exception, this exception thrown when a LOCK request was made, on a resource which was already locked

Public Instance Methods

serialize(_server, error_node) click to toggle source

This method allows the exception to include additional information into the WebDAV error response

@param DAVServer server @param DOMElement error_node @return void

# File lib/tilia/dav/exception/conflicting_lock.rb, line 14
def serialize(_server, error_node)
  if lock
    error = LibXML::XML::Node.new('d:no-conflicting-lock')
    error_node << error

    href = LibXML::XML::Node.new('d:href', lock.uri)
    error << href
  end
end