lib/SlaveChildProcess.js
/**
 * Sends an exception response message to the master process.
 * @param {Object} res The data to send.
 * @return {undefined}
 */
Sends an exception response message to the master process.
@param {Object} res The data to send.
@return {undefined}
Sends an exception response message to the master process . @param { Object } res The data to send . @return { undefined }
function sendExceptionMessageToMaster(res) {
  slaveInstance.emit('sending exception', res);
  if (process.send instanceof Function) {
    process.send(res);
  } else {
    throw new Error('Fatal: Disconnected from master process.');
  }
}
function sendExceptionMessageToMaster ( res ) { slaveInstance . emit ( 'sending exception' , res ) ; if ( process . send instanceof Function ) { process . send ( res ) ; } else { throw new Error ( 'Fatal: Disconnected from master process.' ) ; } }
Sends an exception response message to the master process.
Sends an exception response message to the master process .
/**
   * Emitted when a slave process is sending an exception to it's master
   * @event sending exception
   * @argument {Obkect} exception The exception response object the slave is sending.
   */