Package com.google.crypto.tink.internal
Class TinkBugException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.crypto.tink.internal.TinkBugException
-
- All Implemented Interfaces:
java.io.Serializable
public final class TinkBugException extends java.lang.RuntimeExceptionAn 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTinkBugException.ThrowingRunnableA function which returns void and may throw an Exception.static interfaceTinkBugException.ThrowingSupplier<T>A function which produces a T and may throw an Exception.
-
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 voidexceptionIsBug(TinkBugException.ThrowingRunnable v)Swallows an exception and translates it into a TinkBugException.static <T> TexceptionIsBug(TinkBugException.ThrowingSupplier<T> t)Swallows an exception and translates it into a TinkBugException.
-
-
-
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
-
-
Method Detail
-
exceptionIsBug
public static <T> T exceptionIsBug(TinkBugException.ThrowingSupplier<T> t)
Swallows an exception and translates it into a TinkBugException.
-
exceptionIsBug
public static void exceptionIsBug(TinkBugException.ThrowingRunnable v)
Swallows an exception and translates it into a TinkBugException.
-
-