public class ExceptionStack
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static short |
STACK_ELEMENT_CALLEE
The type for the callee stack.
|
static short |
STACK_ELEMENT_CALLER
The type for the caller stack.
|
Constructor and Description |
---|
ExceptionStack(ScriptWrapper script,
ScriptException exception) |
Modifier and Type | Method and Description |
---|---|
java.lang.StackTraceElement[] |
getCallerStack()
Return the caller stack.
|
short |
getCurrentStackElementType()
Return the current stack element type.
|
java.lang.StackTraceElement[] |
getExceptionStack()
Return the exception stack.
|
ScriptWrapper |
getScript()
Return the script wrapper.
|
java.lang.StackTraceElement |
getStackTraceElement(int i)
Return the StackTraceElement for an index.
|
boolean |
isCallerStackElementType()
Return true if the current stack element type is
STACK_ELEMENT_CALLER . |
boolean |
isExceptionStack(int i)
Return true if the exception at an index is in the exception stack.
|
boolean |
isScriptException()
Return true if the current StackTraceElement is a script exception.
|
int |
length()
Return the length of the stack.
|
public static final short STACK_ELEMENT_CALLER
getCallerStack()
,
Constant Field Valuespublic static final short STACK_ELEMENT_CALLEE
getExceptionStack()
,
Constant Field Valuespublic ExceptionStack(ScriptWrapper script, ScriptException exception)
public ScriptWrapper getScript()
public java.lang.StackTraceElement[] getCallerStack()
public java.lang.StackTraceElement[] getExceptionStack()
public int length()
public short getCurrentStackElementType()
public boolean isCallerStackElementType()
STACK_ELEMENT_CALLER
.STACK_ELEMENT_CALLER
public boolean isScriptException()
public java.lang.StackTraceElement getStackTraceElement(int i)
getCallerStack()
is null or not, it can be an element of the caller stack or an element of the exception
stack.i
- the indexpublic boolean isExceptionStack(int i)
i
- the StackTraceElement indexCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence