Java Method Call invokeAnUnwrapException(final Method method, final Object[] args, final Object target)

Here you can find the source of invokeAnUnwrapException(final Method method, final Object[] args, final Object target)

Description

invoke An Unwrap Exception

License

LGPL

Declaration

public static Object invokeAnUnwrapException(final Method method,
            final Object[] args, final Object target) throws Throwable 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class Main {
    public static Object invokeAnUnwrapException(final Method method,
            final Object[] args, final Object target) throws Throwable {
        try {//from w w w . j  a v  a2s . co m
            return method.invoke(target, args);
        } catch (InvocationTargetException ite) {
            throw ite.getTargetException();
        }
    }
}

Related

  1. invoke(String name, Object object, Object... args)
  2. invoke_ex(Object obj, String method, Class[] params, Object[] args)
  3. invokeAccessableMethodWithArguments(Object instance, String method, Object... arguments)
  4. invokeAndCastCollection(T returnType, Method m, Object obj, Object... args)
  5. invokeAnnotatedDeclaredMethod(Object obj, Class annotationType)
  6. invokeCallback(String callbackName, String callbackParam)
  7. invokeCmd(String className, String[] args)
  8. invokeDeclared(Class c, Object obj, String method, Class[] paramClasses, Object[] params)
  9. invokeDeclared(Class c, Object obj, String method, Class[] paramClasses, Object[] params)