public class StackTraceInterface extends Object implements SentryInterface
| Modifier and Type | Field and Description |
|---|---|
static String |
STACKTRACE_INTERFACE
Name of the Sentry interface allowing to send a StackTrace.
|
| Constructor and Description |
|---|
StackTraceInterface(StackTraceElement[] stackTrace)
Creates a StackTrace for an
Event. |
StackTraceInterface(StackTraceElement[] stackTrace,
StackTraceElement[] enclosingStackTrace)
Creates a StackTrace for an
Event. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getFramesCommonWithEnclosing() |
String |
getInterfaceName()
Gets the unique name of the interface.
|
StackTraceElement[] |
getStackTrace() |
int |
hashCode() |
String |
toString() |
public static final String STACKTRACE_INTERFACE
public StackTraceInterface(StackTraceElement[] stackTrace)
Event.stackTrace - StackTrace to provide to Sentry.public StackTraceInterface(StackTraceElement[] stackTrace, StackTraceElement[] enclosingStackTrace)
Event.
With the help of the enclosing StackTrace, figure out which frames are in common with the parent exception to potentially hide them later in Sentry.
stackTrace - StackTrace to provide to Sentry.enclosingStackTrace - StackTrace of the enclosing exception, to determine how many Stack frames
are in common.public String getInterfaceName()
SentryInterfacegetInterfaceName in interface SentryInterfacepublic StackTraceElement[] getStackTrace()
public int getFramesCommonWithEnclosing()
Copyright © 2012–2014. All rights reserved.