Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


17.6.5 Adding the coding for error handling and setting a return code

You need to add error handling to support windows output if an error occurs. Determine whether to continue or abort the installation if an error occurs, and code the error handling according to the determination.

Also, you need to add the coding for setting a return code to indicate whether or not the installation normally terminated. This coding is necessary for checking errors at the managing server. The return code is a two-digit value displayed as the ninth and tenth (from the left) digits of the maintenance code in the Details dialog box.

The following figure shows an example of coding for error handling and setting a return code.

Figure 17‒28: Example of coding for error handling and setting a return code (1/2)

[Figure]

Figure 17‒29: Example of coding for error handling and setting a return code (2/2)

[Figure]