function _checkRetcode (retcode) {
  if (retcode !== _ReturnCodes.ok && retcode !== _ReturnCodes.noData) {
    if (retcode === _ReturnCodes.timeout) {
      throw new TimeoutError('Timeout error')
    } else {
      throw new DDSError('DDS Error: ' + _getLastDdsErrorMessage())
    }
  }
}
/**
 * Checks the value returned by the functions in the core for success and 
 * throws the appropriate error on failure.
 *
 * We do not handle DDS_RETCODE_NO_DATA here, since in some operations (those
 * related with optional members), we need to handle it separately.
 *
 * @param {number} retcode - The retcode to check
 * @private
 */
Checks the value returned by the functions in the core for success and
throws the appropriate error on failure.

We do not handle DDS_RETCODE_NO_DATA here, since in some operations (those
related with optional members), we need to handle it separately.

@param {number} retcode - The retcode to check
@private
Checks the value returned by the functions in the core for success and throws the appropriate error on failure . We do not handle DDS_RETCODE_NO_DATA here since in some operations ( those related with optional members ) we need to handle it separately . @param { number } retcode - The retcode to check @private
function _checkRetcode (retcode) {
  if (retcode !== _ReturnCodes.ok && retcode !== _ReturnCodes.noData) {
    if (retcode === _ReturnCodes.timeout) {
      throw new TimeoutError('Timeout error')
    } else {
      throw new DDSError('DDS Error: ' + _getLastDdsErrorMessage())
    }
  }
}
function _checkRetcode ( retcode ) { if ( retcode !== _ReturnCodes . ok && retcode !== _ReturnCodes . noData ) { if ( retcode === _ReturnCodes . timeout ) { throw new TimeoutError ( 'Timeout error' ) } else { throw new DDSError ( 'DDS Error: ' + _getLastDdsErrorMessage ( ) ) } } }
Checks the value returned by the functions in the core for success and
 throws the appropriate error on failure.
Checks the value returned by the functions in the core for success and throws the appropriate error on failure .