Class ExceptionMechanismException

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor 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.
    • 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 Throwable
      boolean isSnapshot()
      Returns true if its a snapshot or false otherwise
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExceptionMechanismException

        public ExceptionMechanismException​(@NotNull
                                           @NotNull Mechanism mechanism,
                                           @NotNull
                                           @NotNull java.lang.Throwable throwable,
                                           @NotNull
                                           @NotNull java.lang.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 java.lang.Throwable throwable,
                                           @NotNull
                                           @NotNull java.lang.Thread thread)
        A Throwable that decorates another with a Sentry Mechanism.
        Parameters:
        mechanism - The Mechanism.
        throwable - The Throwable.
        thread - The Thread.
    • 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