Product Information > JADE Installation and Configuration Guide > Appendix A - Exit Values > Enabling the Use of Generic Exit Values for Windows
Enabling the Use of Generic Exit Values for Windows
The [FaultHandling] section of the JADE initialization file provides the StandardExitValues parameter that enables you to specify that JADE programs or utilities return generic exit values.
This parameter defaults to false, as JADE programs and utilities can return exit values in the range of zero (0) through 2^32 by default.
To specify that programs and utilities return generic exit values, set the StandardExitValues parameter in the [FaultHandling] section of the JADE initialization file to true.
In addition, you can use the:
-
CustomExitValue
<JADE-error-message-number> parameter in the [FaultHandling] section of the JADE initialization file when the StandardExitValues parameter is set to true, to remap JADE exit values (error numbers) to a user-defined standard exit code in the range 32 through 63.
The CustomExitValue parameter is valid only when the StandardExitValues parameter is set to true. If the StandardExitValues parameter is set to false, JADE exits with the applicable JADE error number. If the StandardExitValues parameter is set to true, JADE exists with the applicable error number from the remap table (listed in the following section) and checks for the existence of the CustomExitValue parameter or parameters in the [FaultHandling] section of the JADE initialization file.
-
Node
class userExitCode property to specify the value that is returned when a JADE program (for example, jade.exe, jadapp, jadrap.exe, jaded, and so on) exits. For more details, see Chapter 1 of the JADE Encyclopaedia of Classes.
You can use the userExitCode property, for example, to set a non-zero exit code that can then be checked in a batch file by using the ERRORLEVEL keyword to check for appropriate values of the userExitCode property.