Package org.openstreetmap.josm.plugins
Class PluginException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.openstreetmap.josm.plugins.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 newPluginException
with the specified detail message.PluginException(java.lang.String name, java.lang.Throwable cause)
Constructs a newPluginException
with the specified plugin name, cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).PluginException(PluginProxy plugin, java.lang.String name, java.lang.Throwable cause)
Constructs a newPluginException
with the specified plugin and cause.
-
-
-
Field Detail
-
plugin
public final transient PluginProxy plugin
Plugin proxy, can be null
-
-
Constructor Detail
-
PluginException
public PluginException(PluginProxy plugin, java.lang.String name, java.lang.Throwable cause)
Constructs a newPluginException
with the specified plugin and cause.- Parameters:
plugin
- plugin proxyname
- plugin namecause
- cause the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
PluginException
public PluginException(java.lang.String message)
Constructs a newPluginException
with the specified detail message.- Parameters:
message
- message the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).
-
PluginException
public PluginException(java.lang.String name, java.lang.Throwable cause)
Constructs a newPluginException
with the specified plugin name, cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
name
- plugin namecause
- cause the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
-