public final class ExceptionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
fixRemoteStackTrace(Throwable remoteCause,
StackTraceElement[] localSideStackTrace) |
static void |
fixRemoteStackTrace(Throwable remoteCause,
StackTraceElement[] localSideStackTrace,
String localExceptionMessage) |
static RuntimeException |
rethrow(Throwable t) |
static <T extends Throwable> |
rethrow(Throwable t,
Class<T> allowedType) |
static RuntimeException |
rethrowAllowInterrupted(Throwable t) |
static <T> T |
sneakyThrow(Throwable t) |
public static RuntimeException rethrow(Throwable t)
public static <T extends Throwable> RuntimeException rethrow(Throwable t, Class<T> allowedType) throws T extends Throwable
T extends Throwable
public static RuntimeException rethrowAllowInterrupted(Throwable t) throws InterruptedException
InterruptedException
public static <T> T sneakyThrow(Throwable t)
public static void fixRemoteStackTrace(Throwable remoteCause, StackTraceElement[] localSideStackTrace)
public static void fixRemoteStackTrace(Throwable remoteCause, StackTraceElement[] localSideStackTrace, String localExceptionMessage)
Copyright © 2014 Hazelcast, Inc.. All rights reserved.