public final class TinkBugException extends RuntimeException
This exception is thrown by Tink in cases there is a guaranteed bug in Tink. No non-Tink code should throw such an exception.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TinkBugException.ThrowingRunnable
A function which returns void and may throw an Exception.
|
static interface |
TinkBugException.ThrowingSupplier<T>
A function which produces a T and may throw an Exception.
|
| Constructor and Description |
|---|
TinkBugException(String message)
Constructs a new TinkBugException with the specified detail message.
|
TinkBugException(String message,
Throwable cause)
Constructs a new TinkBugException with the specified detail message and cause.
|
TinkBugException(Throwable cause)
Constructs a new TinkBugException as a wrapper on a root cause
|
| Modifier and Type | Method and 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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TinkBugException(String message)
public TinkBugException(String message, Throwable cause)
public TinkBugException(Throwable cause)
public static <T> T exceptionIsBug(TinkBugException.ThrowingSupplier<T> t)
public static void exceptionIsBug(TinkBugException.ThrowingRunnable v)