Project

General

Profile

« Previous | Next » 

Revision 9f5a2d3a

Added by Andreas Müller over 3 years ago

throw exception when datasource could not be saved (instead of logging only)

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/CdmPersistentDataSource.java
424 424
		try {
425 425
			return NewInstance(strDataSourceName) ;
426 426
		} catch (DataSourceNotFoundException e) {
427
			logger.error("Error when saving datasource");
428
			return null;
427
			throw new RuntimeException("Error when saving CdmPersistentDatasource", e);
429 428
		}
430 429
	}
431 430

  

Also available in: Unified diff