public class ErrorHelper extends Object
Constructor and Description |
---|
ErrorHelper() |
Modifier and Type | Method and Description |
---|---|
static UserBitShared.ExceptionWrapper |
getWrapper(Throwable ex) |
static <E extends Throwable> |
sneakyThrow(Throwable e)
Helps to hide checked exception from the compiler but then actually throw it.
|
public static UserBitShared.ExceptionWrapper getWrapper(Throwable ex)
public static <E extends Throwable> void sneakyThrow(Throwable e) throws E extends Throwable
E
- exception typee
- original exception instanceE
- exception instanceE extends Throwable
Copyright © 1970 The Apache Software Foundation. All rights reserved.