Code example for ObjectRetrievalFailureException

0
        try { 
            m_persistenceSelectorStrategy = (PersistenceSelectorStrategy) cinst.newInstance(); 
        } catch (InstantiationException e) { 
            throw new ObjectRetrievalFailureException(PersistenceSelectorStrategy.class, className, "Could not instantiate", e); 
        } catch (IllegalAccessException e) { 
            throw new ObjectRetrievalFailureException(PersistenceSelectorStrategy.class, className, "Could not instantiate", e); 
        } 
    } 
 
    /** 
     * Instantiate storage strategy. 
     * 
     * @param className the class name 
     */ 
    private void instantiateStorageStrategy(String className) { 
        Class<?> cinst; 
        try { 
            cinst = Class.forName(className); 
        } catch (ClassNotFoundException e) { 
            throw new ObjectRetrievalFailureException(StorageStrategy.class, className, "Could not load class", e);