X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fstorage%2FDatabaseMedia.java;h=c16f9471d7212b449ae28469ae2d32e8c35c9c61;hb=7f8c84deada65f3aad3ef3931b3153d504969f6e;hp=3094f764c0ef2fb46cd66d97da196a3124fc7777;hpb=a0061f3bdba87b5f519e734294c9f30e89265743;p=mir.git diff --git a/source/mircoders/storage/DatabaseMedia.java b/source/mircoders/storage/DatabaseMedia.java index 3094f764..c16f9471 100755 --- a/source/mircoders/storage/DatabaseMedia.java +++ b/source/mircoders/storage/DatabaseMedia.java @@ -52,13 +52,14 @@ public class DatabaseMedia extends Database implements StorageObject{ * returns the comments that belong to the article (via entityrelation) * where db-flag is_published is true */ - public Entity getMediaType(Entity ent) { + public Entity getMediaType(Entity ent) throws StorageObjectException { Entity type=null; try { type = relationMediaType.getOne(ent); } catch (StorageObjectException e) { theLog.printError("DatabaseUploadedMedia :: failed to get media_type"); + throw new StorageObjectException("DatabaseUploadedMedia :"+e.toString()); } return type; }