EXCEPTION_WRONG_DOCUMENT_ERROR

Code Value: 2

This exception is thrown when you use incorrect PBDOM_DOCUMENT objects when performing a PBDOM operation. For example, in a RemoveContent method call, if the PBDOM_OBJECT you want to remove is not from the same document as the active PBDOM_DOCUMENT whose RemoveContent method is being invoked, this exception is thrown.