public class MCStackTrace extends Object implements IMCStackTrace
IMCStackTrace.TruncationState
Constructor and Description |
---|
MCStackTrace(List<IMCFrame> frames,
IMCStackTrace.TruncationState truncationState)
Create a new stack trace instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<IMCFrame> |
getFrames()
Return the frames that this stack trace consist of.
|
IMCStackTrace.TruncationState |
getTruncationState()
Returns the truncation state of the stack trace.
|
int |
hashCode() |
public MCStackTrace(List<IMCFrame> frames, IMCStackTrace.TruncationState truncationState)
frames
- the frames of the stack trace, see IMCStackTrace.getFrames()
truncationState
- the stack trace truncation statepublic final List<IMCFrame> getFrames()
IMCStackTrace
getFrames
in interface IMCStackTrace
public IMCStackTrace.TruncationState getTruncationState()
IMCStackTrace
To easily check if the stack trace is truncated you can use the
IMCStackTrace.TruncationState.isTruncated()
method. For example:
mytrace.getTruncationState().isTruncated()
.
getTruncationState
in interface IMCStackTrace
Copyright © 2020. All rights reserved.