Error Codes
Error codes are used to test the conditions in your code. You can use the Web.Link error codes as constants. This enables you to use symbolic constants in the form pwl.ErrorCode, which is a good coding practice. For example:
if (!ret.Status && ret.ErrorCode != pwl.PWL_E_NOT_FOUND)
The class pfcPWLConstants contains the following error codes:
• PWL_NO_ERROR
• PWL_EXEC_NOT_FOUND
• PWL_NO_ACCESS
• PWL_GENERAL_ERROR
• PWL_BAD_INPUTS
• PWL_USER_ABORT
• PWL_E_NOT_FOUND
• PWL_E_FOUND
• PWL_LINE_TOO_LONG
• PWL_CONTINUE
• PWL_BAD_CONTEXT
• PWL_NOT_IMPLEMENTED
• PWL_OUT_OF_MEMORY
• PWL_COMM_ERROR
• PWL_NO_CHANGE
• PWL_SUPP_PARENTS
• PWL_PICK_ABOVE
• PWL_INVALID_DIR
• PWL_INVALID_FILE
• PWL_CANT_WRITE
• PWL_INVALID_TYPE
• PWL_INVALID_PTR
• PWL_UNAV_SEC
• PWL_INVALID_MATRIX
• PWL_INVALID_NAME
• PWL_NOT_EXIST
• PWL_CANT_OPEN
• PWL_ABORT
• PWL_NOT_VALID
• PWL_INVALID_ITEM
• PWL_MSG_NOT_FOUND
• PWL_MSG_NO_TRANS
• PWL_MSG_FMT_ERROR
• PWL_MSG_USER_QUIT
• PWL_MSG_TOO_LONG
• PWL_CANT_ACCESS
• PWL_OBSOLETE_FUNC
• PWL_NO_COORD_SYSTEM
• PWL_E_AMBIGUOUS
• PWL_E_DEADLOCK
• PWL_E_BUSY
• PWL_NOT_IN_SESSION
• PWL_INVALID_SELSTRING