11.8 Invalid Argument Errors
Invalid argument errors indicate that an invalid argument was passed to a function. Any ATMI function that takes arguments can fail if you pass it arguments that are invalid. In the case of a function that returns to the caller, the function fails and causes tperrno(5)
to be set to TPEINVAL
. In the case of tpreturn()
or tpforward()
, the system sets tperrno()
to TPESVCERR
for either the tpcall()
or tpgetrply()
function that initiated the request and is waiting for results to be returned.
You can correct an invalid argument error at the application level by ensuring that you pass only valid arguments to functions.
Parent topic: Managing Errors