method implementation for this case in Java

Posted by Thomas on Stack Overflow See other posts from Stack Overflow or by Thomas
Published on 2010-03-19T17:24:02Z Indexed on 2010/03/19 17:31 UTC
Read the original article Hit count: 193

Filed under:
|
|

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 ?

© Stack Overflow or respective owner

Related posts about java

Related posts about method