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()
IMCStackTracegetFrames in interface IMCStackTracepublic 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 IMCStackTraceCopyright © 2019. All rights reserved.