Retrieve MESSAGE and ERROR

The Genero BDL API for GGC provides functions for retrieving messages and errors when testing applications.

The following functions retrieve messages or error messages from the current instructions (MESSAGE or ERROR) to the user allowing you to test these interactions.

The value is returned in a ggc.Message record type.

Table 1. Functions for retrieving messages and errors
Function Description
getError()
  RETURNS ggc.Message
Return the current error message.
getMessage()
  RETURNS ggc.Message
Return the current message.