stackError()

Initializes a front call answer object with "Stack error" error.

Syntax

(a FrontCallAnswer) stackError()
  1. a is the front call answer object to initialize.

Usage

A stack error can be returned, for example, when the number of parameters returned in a (getParameterCount()) call is invalid. 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.getParameterCount() != 1 THEN
    CALL fcAnswer.stackError()
END IF