public final class ExceptionUtil extends Object
Modifier and Type | Method and Description |
---|---|
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 void throwAsIllegalArgument(Throwable t)
public static void throwIfUnchecked(Throwable t)
public static void throwGenericInternal()
public static void throwInternal(String msg)
Copyright © 2015 Codehaus. All Rights Reserved.