Add 'NagException' to disclose plugin fail

This commit is contained in:
Erik Broes
2011-03-30 00:25:11 +02:00
parent 2d1f422003
commit f9767d4025
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package org.bukkit.plugin;
public class AuthorNagException extends RuntimeException {
private final String message;
/**
* Constructs a new UnknownDependencyException based on the given Exception
*
* @param message Brief message explaining the cause of the exception
* @param throwable Exception that triggered this Exception
*/
public AuthorNagException(final String message) {
this.message = message;
}
@Override
public String getMessage() {
return message;
}
}