Class PluginException

  • All Implemented Interfaces:
    Serializable

    @PublicAPI
    public class PluginException
    extends Exception
    Exception thrown in case of plugin processing or calculation errors. Other exceptions raised during plugin processing are wrapped into a PluginException, so that the caller should catch only PluginException. The wrapped exception can be accessed by the getException() method.
    See Also:
    Serialized Form
    • Constructor Detail

      • PluginException

        public PluginException()
        Default constructor.
      • PluginException

        public PluginException​(String msg)
        Constructor with message.
        Parameters:
        msg - is the exception message.
      • PluginException

        public PluginException​(Throwable e)
        Constructor with wrapped exception.
        Parameters:
        e - is the wrapped exception
      • PluginException

        public PluginException​(String msg,
                               Throwable e)
        Constructor with wrapped exception.
        Parameters:
        msg - is the exception message.
        e - is the wrapped exception
      • PluginException

        public PluginException​(String msg,
                               int level)
        Constructor with message.
        Parameters:
        msg - is the exception message.
        level - is the error level
      • PluginException

        public PluginException​(Throwable e,
                               int level)
        Constructor with wrapped exception.
        Parameters:
        e - is the wrapped exception
        level - is the error level
    • Method Detail

      • getException

        public Throwable getException()
        Returns the wrapped exception.
        Returns:
        the wrapped exception
      • getErrorLevel

        public int getErrorLevel()
        Returns the error level.
        Returns:
        the error level