Class PluginException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PluginException
    extends java.lang.Exception
    Exception that wraps any exception thrown by plugins. It is used in the JOSM main system and there is no particular reason to use this within the plugin itself (although there is also no reason against this.. ;)
    Since:
    149
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      PluginProxy plugin
      Plugin proxy, can be null
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginException​(java.lang.String message)
      Constructs a new PluginException with the specified detail message.
      PluginException​(java.lang.String name, java.lang.Throwable cause)
      Constructs a new PluginException with the specified plugin name, cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
      PluginException​(PluginProxy plugin, java.lang.String name, java.lang.Throwable cause)
      Constructs a new PluginException with the specified plugin and cause.
    • Method Summary

      • 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​(PluginProxy plugin,
                               java.lang.String name,
                               java.lang.Throwable cause)
        Constructs a new PluginException with the specified plugin and cause.
        Parameters:
        plugin - plugin proxy
        name - plugin name
        cause - cause the cause (which is saved for later retrieval by the Throwable.getCause() method).
      • PluginException

        public PluginException​(java.lang.String message)
        Constructs a new PluginException with the specified detail message.
        Parameters:
        message - message the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      • PluginException

        public PluginException​(java.lang.String name,
                               java.lang.Throwable cause)
        Constructs a new PluginException with the specified plugin name, cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
        Parameters:
        name - plugin name
        cause - cause the cause (which is saved for later retrieval by the Throwable.getCause() method).