Error return values

The following table shows the PBXRESULT return values and error codes returned from PBNI methods.

Value of PBXResult

Error code

PBX_OK

0

PBX_SUCCESS

0

PBX_FAIL

-1

PBX_E_NO_REGISTER_FUNCTION

-1

PBX_E_REGISTRATION_FAILED

-2

PBX_E_BUILD_GROUP_FAILED

-3

PBX_E_INVALID_ARGUMENT

-4

PBX_E_INVOKE_METHOD_INACCESSABLE

-5

PBX_E_INVOKE_WRONG_NUM_ARGS

-6

PBX_E_INVOKE_REFARG_ERROR

-7

PBX_E_INVOKE_METHOD_AMBIGUOUS

-8

PBX_E_INVOKE_FAILURE

-9

PBX_E_MISMATCHED_DATA_TYPE

-10

PBX_E_OUTOF_MEMORY

-11

PBX_E_GET_PBVM_FAILED

-12

PBX_E_NO_SUCH_CLASS

-13

PBX_E_CAN_NOT_LOCATE_APPLICATION

-14

PBX_E_INVALID_METHOD_ID

-15

PBX_E_READONLY_ARGS

-16

PBX_E_ARRAY_INDEX_OUTOF_BOUNDS

-100