Code example for InvocationTargetException

Methods: getCause

0
            try { 
                mSetter.invoke(object, value);
            } catch (IllegalAccessException e) {
                throw new AssertionError();
            } catch (InvocationTargetException e) {
                throw new RuntimeException(e.getCause());
            } 
        } else if (mField != null) {
            try { 
                mField.set(object, value);
            } catch (IllegalAccessException e) {
                throw new AssertionError();
            } 
        } else { 
            throw new UnsupportedOperationException("Property " + getName() +" is read-only");
        } 
    } 
 
    @Override 
    public V get(T object) {