Error Printing Functions
List of: Discussion Topic
Subjects: Error Handling
Contents: Application Development Manual

When an error is generated, an error code is returned as part of the outcome returned value, or as part of the warning list. The following functions are used to find or print error messages once an error has occurred:

find_err_entry Uses the error code to return an error_table_entry. When an error is generated, an error code is returned as part of the outcome or as part of the warning list. The class error_table_entry contains the error code value, error code mnemonic, the corresponding error message, and the directory in which the error code was originally defined.

find_err_ident Translates the error number to a string containing the mnemonic name associated with the given error number.

find_err_mess Translates the error number to a string containing the message associated with the given error number.

find_err_module Translates the error number to a string containing the name of the module associated with the given error number.

print_warnerr_mess Prints the message associated with the current error number in a simple format for debugging purposes.

get_warnings Obtains the warnings list.

init_warning Resets the number of warnings to 0.
PDF/APPDEV/06ERR.PDF
HTM/DATA/ACIS/APPDEV/06ERR/0007.HTM