class Tilia::Dav::Exception::LockTokenMatchesRequestUri

LockTokenMatchesRequestUri

This exception is thrown by UNLOCK if a supplied lock-token is invalid

Public Class Methods

new(msg = 'The locktoken supplied does not match any locks on this entity') click to toggle source

Creates the exception

Calls superclass method
# File lib/tilia/dav/exception/lock_token_matches_request_uri.rb, line 9
def initialize(msg = 'The locktoken supplied does not match any locks on this entity')
  super
end

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/lock_token_matches_request_uri.rb, line 18
def serialize(_server, error_node)
  error = LibXML::XML::Node.new('d:lock-token-matches-request-uri')
  error_node << error
end