Revision 4854
Added by daigle about 15 years ago
DatabaseUtil.java | ||
---|---|---|
52 | 52 |
* @return a boolean that is true if database is not unconfigured and false |
53 | 53 |
* otherwise |
54 | 54 |
*/ |
55 |
public static boolean isDatabaseConfigured() throws UtilException { |
|
55 |
public static boolean isDatabaseConfigured() throws MetacatUtilException {
|
|
56 | 56 |
String databaseConfiguredString = PropertyService.UNCONFIGURED; |
57 | 57 |
try { |
58 | 58 |
databaseConfiguredString = |
59 | 59 |
PropertyService.getProperty("configutil.databaseConfigured"); |
60 | 60 |
} catch (PropertyNotFoundException pnfe) { |
61 |
throw new UtilException("Could not determine if database is configured: " |
|
61 |
throw new MetacatUtilException("Could not determine if database is configured: "
|
|
62 | 62 |
+ pnfe.getMessage()); |
63 | 63 |
} |
64 | 64 |
return !databaseConfiguredString.equals(PropertyService.UNCONFIGURED); |
Also available in: Unified diff
Beef up exception handling from file utilities. Move UtilException to MetacatUtilException to eliminate conflict with similar exception in utility package.