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