29 lines
745 B
Java
29 lines
745 B
Java
![]() |
package game.command;
|
||
|
|
||
|
public class ScriptException extends RuntimeException {
|
||
|
public ScriptException(String desc) {
|
||
|
super(desc);
|
||
|
this.setStackTrace(new StackTraceElement[0]);
|
||
|
}
|
||
|
|
||
|
public ScriptException(String fmt, Object ... args) {
|
||
|
super(String.format(fmt, args));
|
||
|
this.setStackTrace(new StackTraceElement[0]);
|
||
|
}
|
||
|
|
||
|
public ScriptException(Throwable cause, String desc) {
|
||
|
super(desc, cause);
|
||
|
this.setStackTrace(new StackTraceElement[0]);
|
||
|
}
|
||
|
|
||
|
public ScriptException(Throwable cause, String fmt, Object ... args) {
|
||
|
super(String.format(fmt, args), cause);
|
||
|
this.setStackTrace(new StackTraceElement[0]);
|
||
|
}
|
||
|
|
||
|
public synchronized Throwable fillInStackTrace() {
|
||
|
this.setStackTrace(new StackTraceElement[0]);
|
||
|
return this;
|
||
|
}
|
||
|
}
|