public class ScriptRuntimeException
extends java.lang.RuntimeException
| Constructor and Description | 
|---|
ScriptRuntimeException()
Constructor. 
 | 
ScriptRuntimeException(ScriptException<?> internalException)
Constructor. 
 | 
ScriptRuntimeException(java.lang.String s)
Constructor. 
 | 
ScriptRuntimeException(java.lang.Throwable cause)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.io.File | 
getFile()
Return the exception file. 
 | 
ScriptException<?> | 
getInternalException()
Return the internal wrapped script exception. 
 | 
int | 
getLineNumber()
Return the exception line number in the script. 
 | 
ScriptWrapper<?> | 
getScriptWrapper()
Return the ScriptWrapper from which the exception originates. 
 | 
java.lang.StackTraceElement[] | 
getStackTrace()
Construct and return the StackTrace 
 | 
java.lang.StackTraceElement[] | 
getStackTrace(boolean filterScriptExceptions)
Construct and return the StackTrace, optionnaly filtering only Script exceptions. 
 | 
boolean | 
isCompilationException()
Return true if the exception is a compilation exception. 
 | 
boolean | 
isDebugging()
Return true if the exception was thrown during debugging. 
 | 
void | 
setFile(java.io.File file)
Set the exception file. 
 | 
public ScriptRuntimeException()
public ScriptRuntimeException(java.lang.String s)
s - the messagepublic ScriptRuntimeException(ScriptException<?> internalException)
internalException - the internal wrapped script exceptionpublic ScriptRuntimeException(java.lang.Throwable cause)
cause - the causepublic ScriptException<?> getInternalException()
public final void setFile(java.io.File file)
file - the filepublic java.io.File getFile()
public boolean isCompilationException()
public ScriptWrapper<?> getScriptWrapper()
public boolean isDebugging()
public int getLineNumber()
public java.lang.StackTraceElement[] getStackTrace()
getStackTrace in class java.lang.Throwablepublic java.lang.StackTraceElement[] getStackTrace(boolean filterScriptExceptions)
filterScriptExceptions - true if filtering only Script exceptionsCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence