Products Downloads


French version


 

The Error Handler is a generated Visual Adelia Cloud program.

 

By default, the SVCERR program (com.hardis.adelia.cloud.common.dialogs.SVCERR) supplied by HARDIS contains the same features as that included in v8.2. However, HARDIS also supplies a SVCERC program (com.hardis.adelia.cloud.common.dialogs.SVCERC) using the features presented below.

 

Note: You can choose the error handler in the CfgParamExec.properties file (execution parameters configuration) using the SVCERR_HDLER key.

Example:

SVCERR_HDLER=com.hardis.adelia.cloud.common.dialogs.SVCERC

 

By default, an error when running a service always generates a message box.

The SVCERRC program offers a new dialog box initialized using the values defined in the MwError.properties file.

 

The new options of MwError.properties can be fixed using the following macros:

EXIT_ON_ERROR = 1

Used to interrupt the program.

REGISTER_ERROR = 1

Used to generate a '*ERROR'-level trace in the logging mechanism.

REGISTER_APP_NAME = AppName

Name used to prefix the Middleware Trace.

DISCONNECT_ON_ERROR = 1

Used to forcibly disconnect the logical server.

 

Check boxes

Saving an event

2 possible cases:

If this box is checked and the user closes the box using the OK button, a trace is added to the log, and the application continues to run.

If this box is checked and the user closes the box using the Finish button, a trace is added to the log, and the application terminates.

 

Disconnect

If this box is checked and the user closes the box using the OK button, the logical server is disconnected and the application continues to run.

Whether this box is checked or not, when the user closes the box using the Finish button, the application terminates and the related logical server is disconnected.

 

In addition, a user who wants to write his own error handling program can write a VADELIA program. This program must then replace the default one (see the CfgParamExec.properties file).

 

This program must define the following parameters:

NUM_BIN_4

SrvErrNb

Service error number.

BOOL

IOMgt

Input/output management.

ALPHA(128)

DefaultPGM

Program name.

ALPHA(128)

LogServ

Name of the logical server.

NUM_BIN_4

ServNb

Service number.

 

Note: You can call the error handling program by default from the new program by calling this program using the CALL instruction.

Example:

ALPHA(128) DEFAULTPGM

DEFAULTPGM = 'com.hardis.adelia.cloud.common.dialogs.SVCERR'

CALL &DEFAULTPGM MwErrNb IOMgt PgmName LogServ ServNb

 

Additional VaToolBx functions necessary to write an error handling program:

↑ Top of page

  • Aucune étiquette