FTAM/9000 Programmer's Guide

338 Chapter 9
Handling Errors
Interpreting Errors
Interpreting Errors
Your program detects errors in two locations.
Function Return Values (includes Event Management (EM) values)
Output parameters
Function Return Values
Function return values indicate whether an error occurred.
Function return values return in the program as integers.
These values may occur because of errors on previous calls. For
example, if the first call within a group fails, thereafter every function
within the group fails.
The value zero indicates SUCCESS.
Refer to the HP FTAM/9000 Reference Manual for a list of function
return values.
Synchronous Calls If the value is SUCCESS, the request
successfully passed to the application
interface, ftam_init, and responder, and
returned back to the user program.
If the value indicates an error, the
application interface, ftam_init, or responder
detected the error.
Asynchronous
Calls
If the value is SUCCESS, the request
successfully passed from the application
interface to ftam_init.
If the value indicates an error, the
application interface detected the error.