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 |
---|---|
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.
|
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 boolean isCompilationException()
public ScriptWrapper<?> getScriptWrapper()
public boolean isDebugging()
public int getLineNumber()
public java.lang.StackTraceElement[] getStackTrace()
getStackTrace
in class java.lang.Throwable
public java.lang.StackTraceElement[] getStackTrace(boolean filterScriptExceptions)
filterScriptExceptions
- true if filtering only Script exceptionsCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence