/** * Gets an instance of this database. * * @return An instance of this database. * @throws UnitDBException The instance couldn't be created. */ public static synchronized StandardUnitDB instance() throws UnitDBException { if (instance == null) { try { instance = new StandardUnitDB(); } catch (Exception e) { throw new UnitDBException("Couldn't create standard unit-database", e); } } return instance; }
LOGGER.fine(e1.getLocalizedMessage());
/** * Gets an instance of this database. * * @return An instance of this database. * @throws UnitDBException * The instance couldn't be created. */ public static StandardUnitDB instance() throws UnitDBException { synchronized (StandardUnitDB.class) { if (instance == null) { try { instance = new StandardUnitDB(); } catch (final Exception e) { throw new UnitDBException( "Couldn't create standard unit-database", e); } } } return instance; }