class Tilia::Dav::Exception::InvalidSyncToken

InvalidSyncToken

This exception is emited for the {DAV:}valid-sync-token pre-condition, as defined in rfc6578, section 3.2.

tools.ietf.org/html/rfc6578#section-3.2

This is emitted in cases where the the sync-token, supplied by a client is either completely unknown, or has expired.

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/invalid_sync_token.rb, line 19
def serialize(_server, error_node)
  error = LibXML::XML::Node.new('d:valid-sync-token')
  error_node << error
end