method implementation for this case in Java
- by Thomas
Hello, I just saw a code snippet like this:
private static class DefaultErrorHandler<RT> implements ErrorHandler<RT> {
public RT handle(Object[] params, Throwable e) {
return Exceptions.throwUncheckedException(e);
}
Now I am wondering what the static method "throwUncheckedException (Throwable e)" would return exactly and how it might be implemented regarding the generics.
Can anybody give me an example ?