
com.github.bloodshura.ignitium.venus.exception.runtime.ScriptRuntimeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of venusscript Show documentation
Show all versions of venusscript Show documentation
A dynamic, easy, highly customizable scripting language.
The newest version!
package com.github.bloodshura.ignitium.venus.exception.runtime;
import com.github.bloodshura.ignitium.exception.CheckedException;
import com.github.bloodshura.ignitium.venus.executor.Context;
public class ScriptRuntimeException extends CheckedException {
private final Context context;
public ScriptRuntimeException(Context context, CharSequence message) {
super(message + " at line " + context.getApplicationContext().currentLine() + " in \"" + context.getScript().getDisplayName() + "\"");
this.context = context;
}
public ScriptRuntimeException(Context context, CharSequence message, Throwable cause) {
super(message + " at line " + context.getApplicationContext().currentLine() + " in \"" + context.getScript().getDisplayName() + "\"", cause);
this.context = context;
}
public ScriptRuntimeException(Context context, Throwable cause) {
super("Runtime error at line " + context.getApplicationContext().currentLine() + " in \"" + context.getScript().getDisplayName() + "\"", cause);
this.context = context;
}
public Context getContext() {
return context;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy