@ApiStatus.Internal
public final class ExceptionMechanismException
extends java.lang.RuntimeException
Mechanism
related to the decorated
Throwable
.Constructor and Description |
---|
ExceptionMechanismException(@NotNull Mechanism mechanism,
@NotNull java.lang.Throwable throwable,
@NotNull java.lang.Thread thread)
A
Throwable that decorates another with a Sentry Mechanism . |
ExceptionMechanismException(@NotNull Mechanism mechanism,
@NotNull java.lang.Throwable throwable,
@NotNull java.lang.Thread thread,
boolean snapshot)
A
Throwable that decorates another with a Sentry Mechanism . |
Modifier and Type | Method and Description |
---|---|
@NotNull Mechanism |
getExceptionMechanism()
Returns the encapsulated Mechanism
|
@NotNull java.lang.Thread |
getThread()
Returns the encapsulated Thread
|
@NotNull java.lang.Throwable |
getThrowable()
Returns the encapsulated Throwable
|
boolean |
isSnapshot()
Returns true if its a snapshot or false otherwise
|
public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull java.lang.Throwable throwable, @NotNull @NotNull java.lang.Thread thread, boolean snapshot)
Throwable
that decorates another with a Sentry Mechanism
.mechanism
- The Mechanism
.throwable
- The Throwable
.thread
- The Thread
.snapshot
- if the captured Thread
's stacktrace is a snapshot.public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull java.lang.Throwable throwable, @NotNull @NotNull java.lang.Thread thread)
Throwable
that decorates another with a Sentry Mechanism
.mechanism
- The Mechanism
.throwable
- The Throwable
.thread
- The Thread
.@NotNull public @NotNull Mechanism getExceptionMechanism()
@NotNull public @NotNull java.lang.Throwable getThrowable()
@NotNull public @NotNull java.lang.Thread getThread()
public boolean isSnapshot()