Class ExceptionMechanismException

All Implemented Interfaces:
Serializable

@Internal public final class ExceptionMechanismException extends RuntimeException
A throwable decorator that holds an Mechanism related to the decorated Throwable.
See Also:
  • Constructor Details

    • ExceptionMechanismException

      public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull Throwable throwable, @NotNull @NotNull Thread thread, boolean snapshot)
      A Throwable that decorates another with a Sentry Mechanism.
      Parameters:
      mechanism - The Mechanism.
      throwable - The Throwable.
      thread - The Thread.
      snapshot - if the captured Thread's stacktrace is a snapshot.
    • ExceptionMechanismException

      public ExceptionMechanismException(@NotNull @NotNull Mechanism mechanism, @NotNull @NotNull Throwable throwable, @NotNull @NotNull Thread thread)
      A Throwable that decorates another with a Sentry Mechanism.
      Parameters:
      mechanism - The Mechanism.
      throwable - The Throwable.
      thread - The Thread.
  • Method Details

    • getExceptionMechanism

      @NotNull public @NotNull Mechanism getExceptionMechanism()
      Returns the encapsulated Mechanism
      Returns:
      the Mechanism
    • getThrowable

      @NotNull public @NotNull Throwable getThrowable()
      Returns the encapsulated Throwable
      Returns:
      the Throwable
    • getThread

      @NotNull public @NotNull 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