Class PluginException

All Implemented Interfaces:
Serializable

public class PluginException extends UsrException
Exception thrown if plugin was not found.
See Also:
  • Constructor Details

    • PluginException

      public PluginException(String className, String details)
      Construct PluginException with a detail message.
      Parameters:
      className - class name of the plugin
      details - the reason the addPlugin failed.
    • PluginException

      public PluginException(String message)
      Construct a PluginException with the given message.
      Parameters:
      message - message that is returned in the getMessage() method
    • PluginException

      public PluginException(String message, Throwable cause)
      Construct a PluginException with the given message and cause.
      Parameters:
      message - the exception message
      cause - the exception cause
  • Method Details

    • getPluginException

      public PluginException getPluginException(PluginException e)
      Creates a new PluginException by appending the message from this exception to the message of the given exception if it is not null. If e is null, returns this exception.
      Parameters:
      e - exception whose message will be appended to this exceptions message if e is not null
      Returns:
      this exception if e is null, or a new exception