PBDOM exceptions

PBDOM defines an exception class derived from the standard PowerBuilder Exception class. This class extends the Exception class with a method, GetExceptionCode, that returns the unique code that identifies the exception being thrown.

The following table lists PBDOM exceptions and their code values. The circumstances in which each exception is thrown are described after the table.

Table 14-1: PBDOM exceptions and code values

Exception

Value

EXCEPTION_USE_OF_UNNAMED_PBDOM_OBJECT

1

EXCEPTION_WRONG_DOCUMENT_ERROR

2

EXCEPTION_MULTIPLE_ROOT_ELEMENT

3

EXCEPTION_INAPPROPRIATE_USE_OF_PBDOM_OBJECT

4

EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE

5

EXCEPTION_PBDOM_OBJECT_ALREADY_HAS_PARENT

6

EXCEPTION_MULTIPLE_DOCTYPE

7

EXCEPTION_ILLEGAL_PBOBJECT

8

EXCEPTION_WRONG_PARENT_ERROR

9

EXCEPTION_INVALID_ARGUMENT

10

EXCEPTION_INVALID_NAME

11

EXCEPTION_DATA_CONVERSION

12

EXCEPTION_MEMORY_ALLOCATION_FAILURE

13

EXCEPTION_INTERNAL_XML_ENGINE_ERROR

14

EXCEPTION_MULTIPLE_XMLDECL

15

EXCEPTION_INVALID_STRING

16

EXCEPTION_INVALID_OPERATION

17

EXCEPTION_HIERARCHY_ERROR

18

EXCEPTION_PBDOM_OBJECT_ALREADY_HAS_OWNER

19

EXCEPTION_PBDOM_NOT_INITIALIZED

20