function createInvalidExceptionError(message, value) {
  var err = new Error(message);
  err.code = 'ERR_MOCHA_INVALID_EXCEPTION';
  err.valueType = typeof value;
  err.value = value;
  return err;
}
function createInvalidExceptionError(message, value) {
  var err = new Error(message);
  err.code = 'ERR_MOCHA_INVALID_EXCEPTION';
  err.valueType = typeof value;
  err.value = value;
  return err;
}
function createInvalidExceptionError ( message , value ) { var err = new Error ( message ) ; err . code = 'ERR_MOCHA_INVALID_EXCEPTION' ; err . valueType = typeof value ; err . value = value ; return err ; }
Creates an error object to be thrown when an exception was caught, but the `Error` is falsy or undefined.

@public
@param {string} message - Error message to be displayed.
@returns {Error} instance detailing the error condition
Creates an error object to be thrown when an exception was caught but the Error is falsy or undefined .
Creates an error object that can be thrown when the value is not a valid type