setBatchError()
setBatchError() initializes the Batch Error values. Sets the following variables:
statusType = STATUS_BATCH;
errorIndex = null;
errorMessage = null;
output = null;
batchErrorMessage = message;
Example
{
statusType = STATUS_BATCH; errorIndex = null;
errorMessage = null; output = null;
batchErrorMessage = message;
}