Add exception reporting event

This commit is contained in:
Zach Brown
2016-02-29 20:24:35 -06:00
parent b007bb8264
commit 7c31d0a39b
12 changed files with 430 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
package com.destroystokyo.paper.exception;
import org.bukkit.plugin.Plugin;
/**
* Thrown whenever there is an exception with any enabling or disabling of plugins.
*/
public class ServerPluginEnableDisableException extends ServerPluginException {
public ServerPluginEnableDisableException(String message, Throwable cause, Plugin responsiblePlugin) {
super(message, cause, responsiblePlugin);
}
public ServerPluginEnableDisableException(Throwable cause, Plugin responsiblePlugin) {
super(cause, responsiblePlugin);
}
protected ServerPluginEnableDisableException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Plugin responsiblePlugin) {
super(message, cause, enableSuppression, writableStackTrace, responsiblePlugin);
}
}