Add error objects to paramters for createDocumentFromRevision updateDocumentFromRevision and deleteDocumentFromRevision