EXCEPTION_INAPPROPRIATE_USE_OF_PBDOM_OBJECT

Code Value: 4

This exception is thrown when a PBDOM_OBJECT is used in an inappropriate manner. A typical scenario is one is which a PBDOM method call results in the violation of the well-formedness of a PBDOM_DOCUMENT.

For example, in an AddContent method invoked on a PBDOM_DOCUMENT object, only PBDOM_OBJECTs of class PBDOM_ELEMENT, PBDOM_COMMENT, PBDOM_PROCESSINGINSTRUCTION, and PBDOM_DOCTYPE can be added. The inclusion of PBDOM_OBJECTs of any other class results in this exception being thrown.