public final class ExceptionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static IOException |
constructIOException(String msg,
Throwable src) |
static void |
setInitCause(Throwable newT,
Throwable rootT) |
static void |
throwAsIllegalArgument(Throwable t) |
static void |
throwGenericInternal()
This method is just added for convenience, and only to be used for
assertion style of exceptions.
|
static void |
throwIfUnchecked(Throwable t) |
static void |
throwInternal(String msg) |
static void |
throwRuntimeException(Throwable t)
Method that can be used to convert any Throwable to a RuntimeException;
conversion is only done for checked exceptions.
|
public static void throwRuntimeException(Throwable t)
public static IOException constructIOException(String msg, Throwable src)
public static void throwAsIllegalArgument(Throwable t)
public static void throwIfUnchecked(Throwable t)
public static void throwGenericInternal()
public static void throwInternal(String msg)
Copyright © 2018 FasterXML. All rights reserved.