class Tilia::Dav::Exception::InvalidResourceType

InvalidResourceType

This exception is thrown when the user tried to create a new collection, with a special resourcetype value that was not recognized by the server.

See RFC5689 section 3.3

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_resource_type.rb, line 16
def serialize(_server, error_node)
  error = LibXML::XML::Node.new('d:valid-resourcetype')
  error_node << error
end