Class PluginException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      PluginException​(java.lang.String message)
      Construct a PluginException with the given message.
      PluginException​(java.lang.String className, java.lang.String details)
      Construct PluginException with a detail message.
      PluginException​(java.lang.String message, java.lang.Throwable cause)
      Construct a PluginException with the given message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PluginException

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

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

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

      • 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