tcr/java/src/game/command/ScriptException.java

29 lines
745 B
Java
Raw Normal View History

2025-03-11 00:23:54 +01:00
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;
}
}