function createInvalidLegacyPluginError(message, pluginType, pluginId) {
    switch (pluginType) {
      case 'reporter':
        return createInvalidReporterError(message, pluginId);
      case 'ui':
        return createInvalidInterfaceError(message, pluginId);
      default:
        throw new Error('unknown pluginType "' + pluginType + '"');
    }
  }
Dynamically creates a plugin-type-specific error based on plugin type
@param {string} message - Error message
@param {"reporter"|"ui"} pluginType - Plugin type. Future: expand as needed
@param {string} [pluginId] - Name/path of plugin, if any
@throws When `pluginType` is not known
@public
@static
@returns {Error}