ASAP 1.1 Hybrid Manual
HP NonStop ASAP Hybrid Manual – 529729-004
Page 4-19
NULL, which means no detailed error code is returned.
Return Values
ASAP_ERROR_NONE (0)
No error. Update was successful.
ASAP_ERROR_INVALID_PARAM (-101)
A parameter was invalid. If specified, *ptr_error_detail contains the incorrect
parameter number (first param = 1). If one of the asap_triplet items in
*ptr_asap_list is incorrect, the value in *ptr_error_detail is: (10 * (index in list + 1))
+ one of the following: 0 if the data_item is incorrect, 1 if the val is incorrect, or 2
if the math is incorrect. For example, if the first asap_triplet item in the list (index
= 0) contains the values data_item = 3, val = 1, math = 5 (this is an invalid math
value!), the *ptr_error_detail value returned would be (10 * (0 + 1)) + 2 = 12.
Looked at another way, the error values are defined as:
10 = first item in list, data_item invalid
11 = first item in list, val invalid
12 = first item in list, math invalid
20 = second item in list, data_item invalid
….
ASAP_ERROR_REMOVED (-111)
The domain has been removed. Once cleanup occurs, the domain can be
reregistered.
ASAP_ERROR_HOST_DOMAIN (-112)
There is a problem with this domain on the NonStop server. Updates continue to
occur locally on the Linux system and are sent to the server. However, the server
might not be able to update or display this data. *ptr_error_detail contains the
NonStop server error number.
ASAP_ERROR_MUTEX (applies to asap_updatelist_ts only) (-113)
No mutex was allocated for this domain, or there was an error accessing the
mutex. The update is not performed. To update data, the application must use
the standard asap_updatelist call.