Front call answer

The Genero BDL API for GGC provides methods for answers to front call requests.

The ggc.FrontCallAnswer type provides an API to build responses to function call requests.

This section documents these front call related APIs. For an example of Genero BDL code using these methods, see Example: custom front call (BDL). This example features use of the methods: notProcessed(), stackError(), userError(), and success() as they are used in a front call implementation.

Table 1. Methods for the FrontCallAnswer
Method Description
(a FrontCallAnswer) functionNotFound()
Initializes a front call answer object with "Function not found" error.
(a FrontCallAnswer) moduleNotFound()
Initializes a front call answer object with "Module not found" error.
(a FrontCallAnswer) notProcessed()
Leave the front call unprocessed.
(a FrontCallAnswer) returnInteger(
  value INTEGER )
Adds an integer return value.
(a FrontCallAnswer) returnString(
  value STRING )
Adds a string return value.
(a FrontCallAnswer) stackError()
Initializes a front call answer object with "Stack error" error.
(a FrontCallAnswer) success()
Initializes a front call answer object with SUCCESS status.
(a FrontCallAnswer) userError(errorMessage STRING)
Initializes a front call answer object with custom error and error message.