function createFatalError$1(message, value) {
    var err = new Error(message);
    err.code = constants$4.FATAL;
    err.valueType = typeof value;
    err.value = value;
    return err;
  }
Creates an error object to be thrown when an unrecoverable error occurs.

@public
@static
@param {string} message - Error message to be displayed.
@returns {Error} instance detailing the error condition