public final class SentryException extends Object
StackTraceInterface.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Name used when the class' package is the default one.
|
| Constructor and Description |
|---|
SentryException(String exceptionMessage,
String exceptionClassName,
String exceptionPackageName,
StackTraceInterface stackTraceInterface)
Creates a Sentry exception.
|
SentryException(Throwable throwable,
StackTraceElement[] childExceptionStackTrace)
Creates a Sentry exception based on a Java Throwable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Deque<SentryException> |
extractExceptionQueue(Throwable throwable)
Transforms a
Throwable into a Queue of SentryException. |
String |
getExceptionClassName() |
String |
getExceptionMessage() |
String |
getExceptionPackageName()
Gets the exception package name.
|
StackTraceInterface |
getStackTraceInterface() |
int |
hashCode() |
String |
toString() |
public static final String DEFAULT_PACKAGE_NAME
public SentryException(Throwable throwable, StackTraceElement[] childExceptionStackTrace)
The childExceptionStackTrace parameter is used to define the common frames with the child exception
(Exception caused by throwable).
throwable - Java exception to send to Sentry.childExceptionStackTrace - StackTrace of the exception caused by throwable.public SentryException(String exceptionMessage, String exceptionClassName, String exceptionPackageName, StackTraceInterface stackTraceInterface)
exceptionMessage - message of the exception.exceptionClassName - exception's class name (simple name).exceptionPackageName - exception's package name.stackTraceInterface - StackTraceInterface holding the StackTrace information of the exception.public static Deque<SentryException> extractExceptionQueue(Throwable throwable)
Throwable into a Queue of SentryException.
Exceptions are stored in the queue from the most recent one to the oldest one.
throwable - throwable to transform in a queue of exceptions.public String getExceptionMessage()
public String getExceptionClassName()
public String getExceptionPackageName()
If there is no package, the value will be DEFAULT_PACKAGE_NAME.
DEFAULT_PACKAGE_NAME if it isn't defined.public StackTraceInterface getStackTraceInterface()
Copyright © 2012–2014. All rights reserved.