public ModuleUploadedMedia(StorageObject theStorage) {
this.theStorage = theStorage;
if (theLog == null)
- theLog = Logfile.getInstance(this.getClass().getName());
+ theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Themen.Logfile"));
}
- public SimpleList getUploadedMediaAsSimpleList() {
- return ((DatabaseUploadedMedia)theStorage).getPopupData();
+ public SimpleList getUploadedMediaAsSimpleList()
+ throws ModuleException {
+ try {
+ return ((DatabaseUploadedMedia)theStorage).getPopupData();
+ } catch (StorageObjectException e) {
+ throw new ModuleException(e.toString());
+ }
}
}