Class PluginModuleException

All Implemented Interfaces:
Serializable

public class PluginModuleException extends UltiToolsException
Exception thrown when plugin module operations fail.
Since:
6.2.0
Author:
wisdomme
See Also:
  • Constructor Details

    • PluginModuleException

      public PluginModuleException(String message)
      Creates a new plugin module exception with the given message.
      Parameters:
      message - the error message
    • PluginModuleException

      public PluginModuleException(ErrorCode errorCode, String message)
      Creates a new plugin module exception with a specific error code.
      Parameters:
      errorCode - the error code
      message - the error message
    • PluginModuleException

      public PluginModuleException(String message, Throwable cause)
      Creates a new plugin module exception with message and cause.
      Parameters:
      message - the error message
      cause - the underlying cause
    • PluginModuleException

      public PluginModuleException(ErrorCode errorCode, String message, Throwable cause)
      Creates a new plugin module exception with error code, message, and cause.
      Parameters:
      errorCode - the error code
      message - the error message
      cause - the underlying cause
  • Method Details

    • loadFailed

      public static PluginModuleException loadFailed(String pluginName, Throwable cause)
      Creates an exception for plugin load failures.
      Parameters:
      pluginName - the name of the plugin that failed to load
      cause - the underlying cause
      Returns:
      a new PluginModuleException
    • unloadFailed

      public static PluginModuleException unloadFailed(String pluginName, Throwable cause)
      Creates an exception for plugin unload failures.
      Parameters:
      pluginName - the name of the plugin that failed to unload
      cause - the underlying cause
      Returns:
      a new PluginModuleException
    • dependencyMissing

      public static PluginModuleException dependencyMissing(String pluginName, String missingDependency)
      Creates an exception for missing plugin dependencies.
      Parameters:
      pluginName - the name of the plugin with missing dependencies
      missingDependency - the name of the missing dependency
      Returns:
      a new PluginModuleException
    • circularDependency

      public static PluginModuleException circularDependency(String... pluginNames)
      Creates an exception for circular plugin dependencies.
      Parameters:
      pluginNames - the names of plugins involved in the circular dependency
      Returns:
      a new PluginModuleException