lib/api/response.js
function ResponseApi(constructorOptions) {

    LOG.debug('Instantiating new response object');
    LOG.debug('Validating options');

    try {

        this.options =
            new responseOptions.Constructor().validate(constructorOptions);

    } catch (err) {

        LOG.error('Received error: %s', err);

        throw(err);

    }

    this.response = {};
    this.isBatch = false;

    this._createResponseView();

}
function ResponseApi(constructorOptions) {

    LOG.debug('Instantiating new response object');
    LOG.debug('Validating options');

    try {

        this.options =
            new responseOptions.Constructor().validate(constructorOptions);

    } catch (err) {

        LOG.error('Received error: %s', err);

        throw(err);

    }

    this.response = {};
    this.isBatch = false;

    this._createResponseView();

}
function ResponseApi ( constructorOptions ) { LOG . debug ( 'Instantiating new response object' ) ; LOG . debug ( 'Validating options' ) ; try { this . options = new responseOptions . Constructor ( ) . validate ( constructorOptions ) ; } catch ( err ) { LOG . error ( 'Received error: %s' , err ) ; throw ( err ) ; } this . response = { } ; this . isBatch = false ; this . _createResponseView ( ) ; }
Response-handling API

@param {ResponseConstructorOptions} constructorOptions
Options for the constructor
@constructor
@throws {NoBatchResponse}
@throws {InvalidOptionError}
Response - handling API