Search in sources :

Example 1 with StartUpException

use of org.mifos.framework.exceptions.StartUpException in project head by mifos.

the class ConfigurationInitializer method initialize.

public void initialize() {
    try {
        CacheRepository cacheRepository = CacheRepository.getInstance();
        cacheRepository.setSystemConfiguration(createSystemConfiguration());
        cacheRepository.setOfficeCache(createOfficeCache());
    } catch (SystemException se) {
        throw new StartUpException(se);
    } catch (ApplicationException e) {
        throw new StartUpException(e);
    }
}
Also used : ApplicationException(org.mifos.framework.exceptions.ApplicationException) SystemException(org.mifos.framework.exceptions.SystemException) StartUpException(org.mifos.framework.exceptions.StartUpException) CacheRepository(org.mifos.config.cache.CacheRepository)

Aggregations

CacheRepository (org.mifos.config.cache.CacheRepository)1 ApplicationException (org.mifos.framework.exceptions.ApplicationException)1 StartUpException (org.mifos.framework.exceptions.StartUpException)1 SystemException (org.mifos.framework.exceptions.SystemException)1