X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fstorage%2FDatabaseUploadedMedia.java;h=428edc44345875f09018c05ec32fea7dd0f39063;hb=fa58a8a8c88c4c23cc537258818abbd8569c093b;hp=416f89034c857bb7d2f816672e3562410d0f02c1;hpb=d0a53f777c4cd00509d4ab4a5b53893e42007212;p=mir.git diff --git a/source/mircoders/storage/DatabaseUploadedMedia.java b/source/mircoders/storage/DatabaseUploadedMedia.java index 416f8903..428edc44 100755 --- a/source/mircoders/storage/DatabaseUploadedMedia.java +++ b/source/mircoders/storage/DatabaseUploadedMedia.java @@ -54,13 +54,14 @@ public class DatabaseUploadedMedia extends Database implements StorageObject { * returns the comments that belong to the article (via entityrelation) * where db-flag is_published is true */ - public Entity getMediaType(EntityUploadedMedia 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 :: failed to get media_type"+ e.toString()); } return type; }