public class GRS2ThrowableWrapper extends Object implements Serializable
| Constructor and Description |
|---|
GRS2ThrowableWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
convertToException(Class<?> exClass,
Throwable th)
Converts a throwable in a specific class type exClass.
|
static Throwable |
convertToGenaralException(Throwable th)
Converts a throwable in
GRS2Exception.class |
static Throwable |
createFromGRS2ThrowableWrapper(GRS2ThrowableWrapper tw,
Class<?> genericException)
Creates a Throwable from a GRS2ThrowableWrapper.
|
static GRS2ThrowableWrapper |
createFromThrowable(Throwable th)
Creates a GRS2ThrowableWrapper from a Throwable
|
public static Throwable convertToGenaralException(Throwable th) throws GRS2ThrowableWrapperException
GRS2Exception.classth - GRS2ThrowableWrapperExceptionpublic static Throwable convertToException(Class<?> exClass, Throwable th) throws GRS2ThrowableWrapperException
exClass - th - GRS2ThrowableWrapperExceptionpublic static GRS2ThrowableWrapper createFromThrowable(Throwable th) throws GRS2ThrowableWrapperException
th - GRS2ThrowableWrapperExceptionpublic static Throwable createFromGRS2ThrowableWrapper(GRS2ThrowableWrapper tw, Class<?> genericException) throws GRS2ThrowableWrapperException
tw - genericException - GRS2ThrowableWrapperExceptionCopyright © 2014. All Rights Reserved.