tperrordetail(3c)-get additional detail about an error generated from the last BEA TUXEDO system call
#include <atmi.h>
int tperrordetail(long flags)
tperrordetail returns additional detail related to an error produced by the last BEA TUXEDO system routine called in the current thread. tperrordetail returns a numeric value that is also represented by a symbolic name. If the last BEA TUXEDO system routine called in the current thread did not produce an error, then tperrordetail will return zero. Therefore, tperrordetail should be called after an error has been indicated; that is, when tperrno has been set.
Currently flags is reserved for future use and must be set to 0.
tperrordetail returns a -1 on error and sets tperrno to indicate the error condition.
These are the symbolic names and meaning for each numeric value that tperrordetail may return. The order in which these are listed is not significant and does not imply precedence.
TPED_SVCTIMEOUT
SVCTIMEOUT in the ubbconfig file or TA_SVCTIMEOUT in T_SERVER and T_SERVICE classes in the TM_MIB.
TPED_TERM
TPED_NOUNSOLHANDLER
TPACK flag is used in a tpnotify(3c) call and the target of the tpnotify(3c) is in a BEA TUXEDO session, but it has not set an unsolicited notification handler. When tpnotify(3c) fails, tperrno is set to TPENOENT. A subsequent call to tperrordetail(3c) with no intermediate ATMI calls returns TPED_NOUNSOLHANDLER.
TPED_NOCLIENT
TPACK flag is used in a tpnotify call but there is no target for tpnotify(3c). When tpnotify(3c) fails, tperrno is set to TPENOENT. A subsequent call to tperrordetail(3c) with no intermediate ATMI calls returns TPED_NOCLIENT.
TPED_CLIENTDISCONNECTED
TPACK flag is used in a tpnotify(3c) call and the target of tpnotify(3c) is a currently disconnected Jolt client. When tpnotify(3c) fails, a call to tperrordetail(3c) with no intermediate ATMI calls returns TPED_CLIENTDISCONNECTED.
TPED_DOMAINUNREACHABLE
tperrordetail(3c) with no intermediate ATMI calls, TPED_DOMAINUNREACHABLE is returned.
tpcall(3c), tpgetrply(3c), and tprecv(3c) fail because of an unreachable domain, TPED_DOMAINUNREACHABLE is returned. The following table indicates the corresponding values returned by tperrno.
|
Error Detail | ||
|
| ||
|
| ||
|
|
Under the following conditions tperrordetail fails and sets tperrno to the following:
TPEINVAL
flags not set to zero
intro(3c), tpstrerrordetail(3c), tperrno(5)