// Contructor
public ModuleComment(StorageObject theStorage)
{
- //if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Comment.Logfile"));
- //if (theStorage == null) theLog.printWarning("StorageObject was null!");
+ if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Comment.Logfile"));
+ if (theStorage == null) theLog.printWarning("StorageObject was null!");
this.theStorage = theStorage;
}
// Methoden
- public SimpleList getCommentAsSimpleList() {
- return ((DatabaseComment)theStorage).getPopupData();
+ public SimpleList getCommentAsSimpleList() throws ModuleException {
+ try {
+ return ((DatabaseComment)theStorage).getPopupData();
+ } catch (StorageObjectException e) {
+ throw new ModuleException(e.toString());
+ }
}
/**