Class ServerPluginException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.destroystokyo.paper.exception.ServerException
com.destroystokyo.paper.exception.ServerPluginException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ServerEventException
,ServerPluginEnableDisableException
,ServerPluginMessageException
,ServerSchedulerException
Wrapper exception for all cases to which a plugin can be immediately blamed for
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServerPluginException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Plugin responsiblePlugin) ServerPluginException
(String message, Throwable cause, Plugin responsiblePlugin) ServerPluginException
(Throwable cause, Plugin responsiblePlugin) -
Method Summary
Modifier and TypeMethodDescriptionGets the plugin which is directly responsible for the exception being thrownMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerPluginException
-
ServerPluginException
-
ServerPluginException
-
-
Method Details
-
getResponsiblePlugin
Gets the plugin which is directly responsible for the exception being thrown- Returns:
- plugin which is responsible for the exception throw
-