projects
/
mir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
media stuff
[mir.git]
/
source
/
mircoders
/
module
/
ModuleImages.java
diff --git
a/source/mircoders/module/ModuleImages.java
b/source/mircoders/module/ModuleImages.java
index
e5c37a5
..
13ee50d
100755
(executable)
--- a/
source/mircoders/module/ModuleImages.java
+++ b/
source/mircoders/module/ModuleImages.java
@@
-24,7
+24,7
@@
public class ModuleImages extends AbstractModule {
public ModuleImages(StorageObject theStorage) {
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.Images.Logfile"
));
if (theStorage == null) theLog.printWarning("StorageObject was null!");
this.theStorage = theStorage;
if (theStorage == null) theLog.printWarning("StorageObject was null!");
this.theStorage = theStorage;
@@
-32,10
+32,15
@@
public class ModuleImages extends AbstractModule {
// Methoden
// Methoden
- public SimpleList getBilderAsSimpleList() {
+ public SimpleList getBilderAsSimpleList()
+ throws ModuleException {
// String sql = "select id, name from Bilder order by name";
// 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());
+ }
}
}
}
}