| Package | Description |
|---|---|
| com.hazelcast.util |
This package contains classes to support the inner workings of Hazelcast
as well as some backports of newer Java features / data structures to
support older Java versions in a clean and nice way.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,W extends Throwable> |
ExceptionUtil.peel(Throwable t,
Class<T> allowedType,
String message,
ExceptionUtil.ExceptionWrapper<W> exceptionWrapper)
Processes
Throwable t so that the returned Throwable's type matches allowedType,
RuntimeException or any Throwable returned by `exceptionWrapper`
Processing may include unwrapping t's cause hierarchy, wrapping it in a exception
created by using exceptionWrapper or just returning the same instance t
if it is already an instance of RuntimeException. |
static RuntimeException |
ExceptionUtil.rethrow(Throwable t,
ExceptionUtil.ExceptionWrapper<RuntimeException> exceptionWrapper) |
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.