syncbase/src/test/java/io/v/syncbase/ExceptionsTest.java
/**
     * Make VError, using reflection to call private constructor.
     */
Make VError, using reflection to call private constructor.
Make VError using reflection to call private constructor .
private static VError newVError(String message, String goErrorId) throws
            IllegalAccessException, InvocationTargetException,
            InstantiationException, NoSuchMethodException {
        Constructor<VError> constructor = VError.class.getDeclaredConstructor();
        constructor.setAccessible(true);
        VError e = constructor.newInstance();
        e.message = message;
        e.id = goErrorId;
        return e;
    }
private static VError newVError ( String message , String goErrorId ) throws IllegalAccessException , InvocationTargetException , InstantiationException , NoSuchMethodException { Constructor < VError > constructor = VError . class . getDeclaredConstructor ( ) ; constructor . setAccessible ( true ) ; VError e = constructor . newInstance ( ) ; e . message = message ; e . id = goErrorId ; return e ; }
Make VError, using reflection to call private constructor.
Make VError using reflection to call private constructor .