Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2.sqlobject;
 
 import  net.sf.cglib.proxy.MethodProxy;
 
 
 class PassThroughHandler implements Handler
 {
 
    private final Method method;
    PassThroughHandler(Method method)
    {
        this. = method;
    }
    @Override
    public Object invoke(HandleDing hObject targetObject[] args, MethodProxy mp)
    {
        try {
            return mp.invokeSuper(targetargs);
        }
        catch (AbstractMethodError e) {
            throw new AbstractMethodError("Method " + .getDeclaringClass().getName() + "#" + .getName() +
                                               " doesn't make sense -- it probably needs a @Sql* annotation of some kind.");
        }
        catch (Throwable throwable) {
            /*
             */
            if (throwable instanceof RuntimeException) {
                throw (RuntimeExceptionthrowable;
            }
            else if (throwable instanceof Error) {
                throw (Errorthrowable;
            }
            else {
                throw new RuntimeException(throwable);
            }
        }
    }
New to GrepCode? Check out our FAQ X