function callback(error, result)
            {
                if (error)
                    reject(new Error(error));
                else
                    resolve(replyArgs.length ? result : undefined);
            }
@param {?Protocol.Error} error
@param {?Object} result