- rewrapAndThrowUncheckedException
If Throwable is a RuntimeException or Error, rewrap and throw it. If not, throw
a new PalantirRuntim
- throwUncheckedException
- rewrap
Rewraps the given throwable in a newly created throwable of the same runtime
type in order to captur
- throwIfInstance
if (t instanceof K) throw (K)t; Note: The runtime type of the thrown exception
will be the same as t
- chain
Simply call throwable.initCause(cause) and return throwable. This makes it easy
to chain for old exc
- unwrapAndThrowAtlasDbDependencyException
If Throwable is a RuntimeException or Error, rethrow it. If its an
ExecutionException or InvocationT
- addCurrentStackIfRewrapFails
- createAtlasDbDependencyException
- isInstance
- printStackTrace
- printThreadDump
This method prints a series of stack traces. It is meant to be used with the
output from Threads.get
- rewrapAndThrowIfInstance
if (t instanceof K) throw Throwables.rewrap((K)t); Note: The runtime type of the
thrown exception wi