userError()

Initializes a front call answer object with custom error and error message.

Syntax

(a FrontCallAnswer) userError(errorMessage STRING)
  1. a is the front call answer object to initialize.
  2. errorMessage is the error message.

Usage

For example, you would call this method after a front call request to getParameterValue(). If an error is returned, the front call chain will stop and the error is returned to the DVM.

You must declare a variable of type ggc.FrontCallAnswer. For example:

DEFINE fcRequest FrontCallRequest
DEFINE fcAnswer FrontCallAnswer
...
IF fcRequest.getParameterValue(1) != "foo" THEN
    CALL fcAnswer.userError("Parameter 1 should be foo")
END IF