From 0baa46d5ee4f62adb58f436af4978d9468454870 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 22 Jun 2012 10:11:17 +0200 Subject: Modules and entitycreation support Aggregations, collection properties and class identifiers --- src/main/java/com/c2kernel/property/PropertyUtility.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/c2kernel/property/PropertyUtility.java') diff --git a/src/main/java/com/c2kernel/property/PropertyUtility.java b/src/main/java/com/c2kernel/property/PropertyUtility.java index f8e714c..497e5d3 100644 --- a/src/main/java/com/c2kernel/property/PropertyUtility.java +++ b/src/main/java/com/c2kernel/property/PropertyUtility.java @@ -12,6 +12,7 @@ package com.c2kernel.property; import java.util.ArrayList; import java.util.Iterator; +import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.persistency.ClusterStorage; import com.c2kernel.persistency.outcome.Outcome; import com.c2kernel.process.Gateway; @@ -54,7 +55,7 @@ public class PropertyUtility } - static public PropertyDescriptionList getPropertyDescriptionOutcome(int entityKey) + static public PropertyDescriptionList getPropertyDescriptionOutcome(int entityKey) throws ObjectNotFoundException { try { @@ -64,7 +65,7 @@ public class PropertyUtility catch (Exception ex) { Logger.error(ex); - return null; + throw new ObjectNotFoundException("Problem getting PropertyDescription from "+entityKey, ""); } } -- cgit v1.2.3