Official Content

Performs user-specific actions dynamically when a database-related error occurs at program execution time.

Syntax

Error_Handler(['subname'])

Where:

subname
     Is the name of a subroutine defined in the object that contains this rule. This parameter is optional.

Scope

Objects: ProcedureTransaction, Web Panel
Generators: .NET.NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

This command performs user-specific actions dynamically when a database-related error occurs at program execution time. Transactional and connection errors are detected and a user-defined routine is executed.

The error_handler command is procedural and the subname parameter is optional. If specified, the subroutine becomes the new error_handler until the program ends or a different error_handler is executed (in the same program). When the subname parameter is not specified, the error handling routine is reset to the one specified by the error_handler rule or, to the default error_handler if no error_handler rule exists.

More information at Error_Handler rule

See Also

Error_Handler rule

    

  


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant