public final class Throwables extends Object
| Constructor and Description |
|---|
Throwables() |
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
handleAndWrapException(String message,
Exception exception)
Handles an
exception and wraps it into a RuntimeException. |
public static RuntimeException handleAndWrapException(String message, Exception exception)
exception and wraps it into a RuntimeException. The resulting exception contains
more details in case the given exception is of a HttpResponseException.message - the messageexception - the root exceptionRuntimeException wrapping the given exceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.