Class TinkBugException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class TinkBugException
    extends java.lang.RuntimeException
    An exception to be thrown in case there is a bug in Tink.

    This exception is thrown by Tink in cases there is a guaranteed bug in Tink. No non-Tink code should throw such an exception.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TinkBugException​(java.lang.String message)
      Constructs a new TinkBugException with the specified detail message.
      TinkBugException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new TinkBugException with the specified detail message and cause.
      TinkBugException​(java.lang.Throwable cause)
      Constructs a new TinkBugException as a wrapper on a root cause
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void exceptionIsBug​(TinkBugException.ThrowingRunnable v)
      Swallows an exception and translates it into a TinkBugException.
      static <T> T exceptionIsBug​(TinkBugException.ThrowingSupplier<T> t)
      Swallows an exception and translates it into a TinkBugException.
      • 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

      • TinkBugException

        public TinkBugException​(java.lang.String message)
        Constructs a new TinkBugException with the specified detail message.
      • TinkBugException

        public TinkBugException​(java.lang.String message,
                                java.lang.Throwable cause)
        Constructs a new TinkBugException with the specified detail message and cause.
      • TinkBugException

        public TinkBugException​(java.lang.Throwable cause)
        Constructs a new TinkBugException as a wrapper on a root cause