Package io.sentry.exception
Class ExceptionMechanismException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.sentry.exception.ExceptionMechanismException
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public final class ExceptionMechanismException extends java.lang.RuntimeException
A throwable decorator that holds anMechanism
related to the decoratedThrowable
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExceptionMechanismException(@NotNull Mechanism mechanism, @NotNull java.lang.Throwable throwable, @NotNull java.lang.Thread thread)
AThrowable
that decorates another with a SentryMechanism
.ExceptionMechanismException(@NotNull Mechanism mechanism, @NotNull java.lang.Throwable throwable, @NotNull java.lang.Thread thread, boolean snapshot)
AThrowable
that decorates another with a SentryMechanism
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 Throwableboolean
isSnapshot()
Returns true if its a snapshot or false otherwise
-
-
-
Constructor Detail
-
ExceptionMechanismException
public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull java.lang.Throwable throwable, @NotNull @NotNull java.lang.Thread thread, boolean snapshot)
AThrowable
that decorates another with a SentryMechanism
.- Parameters:
mechanism
- TheMechanism
.throwable
- TheThrowable
.thread
- TheThread
.snapshot
- if the capturedThread
's stacktrace is a snapshot.
-
ExceptionMechanismException
public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull java.lang.Throwable throwable, @NotNull @NotNull java.lang.Thread thread)
AThrowable
that decorates another with a SentryMechanism
.- Parameters:
mechanism
- TheMechanism
.throwable
- TheThrowable
.thread
- TheThread
.
-
-
Method Detail
-
getExceptionMechanism
@NotNull public @NotNull Mechanism getExceptionMechanism()
Returns the encapsulated Mechanism- Returns:
- the Mechanism
-
getThrowable
@NotNull public @NotNull java.lang.Throwable getThrowable()
Returns the encapsulated Throwable- Returns:
- the Throwable
-
getThread
@NotNull public @NotNull java.lang.Thread getThread()
Returns the encapsulated Thread- Returns:
- the Thread
-
isSnapshot
public boolean isSnapshot()
Returns true if its a snapshot or false otherwise- Returns:
- true or false
-
-