Class PluginException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openstreetmap.josm.plugins.PluginException
All Implemented Interfaces:
Serializable

public class PluginException extends 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:
  • Field Details

  • Constructor Details

    • PluginException

      public PluginException(PluginProxy plugin, String name, 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(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(String name, 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).