Package org.openstreetmap.josm.plugins
Class PluginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openstreetmap.josm.plugins.PluginException
- All Implemented Interfaces:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPluginException(String message) Constructs a newPluginExceptionwith the specified detail message.PluginException(String name, Throwable cause) Constructs a newPluginExceptionwith 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, String name, Throwable cause) Constructs a newPluginExceptionwith 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
-
Field Details
-
plugin
Plugin proxy, can be null
-
-
Constructor Details
-
PluginException
Constructs a newPluginExceptionwith 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
Constructs a newPluginExceptionwith the specified detail message.- Parameters:
message- message the detail message (which is saved for later retrieval by theThrowable.getMessage()method).
-
PluginException
Constructs a newPluginExceptionwith 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).
-