public ModuleUsers(StorageObject theStorage)
{
- if (theLog == null) theLog = Logfile.getInstance(this.getClass().getName());
+ if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Users.Logfile"));
if (theStorage == null) theLog.printWarning("StorageObject was null!");
this.theStorage = theStorage;
}
}
- public SimpleList getUsersAsSimpleList() {
+ public SimpleList getUsersAsSimpleList() throws ModuleException {
// String sql = "select id, name from Users order by name";
- return ((DatabaseUsers)theStorage).getPopupData();
+ try {
+ return ((DatabaseUsers)theStorage).getPopupData();
+ } catch(StorageObjectException e) {
+ throw new ModuleException(e.toString());
+ }
}
}