From b68ea0f2b12c4c5189c5fc7c182a1b242dc63579 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Fri, 3 Oct 2014 23:18:47 +0200 Subject: Rolled back the renaming of existing exceptions. --- src/main/java/com/c2kernel/property/PropertyDescriptionList.java | 6 +++--- src/main/java/com/c2kernel/property/PropertyUtility.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/java/com/c2kernel/property') diff --git a/src/main/java/com/c2kernel/property/PropertyDescriptionList.java b/src/main/java/com/c2kernel/property/PropertyDescriptionList.java index a4e226d..d06fb3d 100644 --- a/src/main/java/com/c2kernel/property/PropertyDescriptionList.java +++ b/src/main/java/com/c2kernel/property/PropertyDescriptionList.java @@ -23,7 +23,7 @@ package com.c2kernel.property; import java.util.ArrayList; import java.util.HashMap; -import com.c2kernel.common.InvalidData; +import com.c2kernel.common.InvalidDataException; import com.c2kernel.utils.CastorArrayList; public class PropertyDescriptionList extends CastorArrayList @@ -68,12 +68,12 @@ public class PropertyDescriptionList extends CastorArrayList validatedInitProps = new HashMap(); for (Property initProp : initProps.list) { if (!definesProperty(initProp.getName())) - throw new InvalidData("Property "+initProp.getName()+" has not been declared in the property descriptions"); + throw new InvalidDataException("Property "+initProp.getName()+" has not been declared in the property descriptions"); else validatedInitProps.put(initProp.getName(), initProp.getValue()); } diff --git a/src/main/java/com/c2kernel/property/PropertyUtility.java b/src/main/java/com/c2kernel/property/PropertyUtility.java index b345962..787c645 100644 --- a/src/main/java/com/c2kernel/property/PropertyUtility.java +++ b/src/main/java/com/c2kernel/property/PropertyUtility.java @@ -23,7 +23,7 @@ package com.c2kernel.property; import java.util.ArrayList; import java.util.Iterator; -import com.c2kernel.common.ObjectNotFound; +import com.c2kernel.common.ObjectNotFoundException; import com.c2kernel.lookup.ItemPath; import com.c2kernel.persistency.ClusterStorage; import com.c2kernel.persistency.outcome.Outcome; @@ -66,7 +66,7 @@ public class PropertyUtility } - static public PropertyDescriptionList getPropertyDescriptionOutcome(ItemPath itemPath, String descVer) throws ObjectNotFound + static public PropertyDescriptionList getPropertyDescriptionOutcome(ItemPath itemPath, String descVer) throws ObjectNotFoundException { try { @@ -76,7 +76,7 @@ public class PropertyUtility catch (Exception ex) { Logger.error(ex); - throw new ObjectNotFound("Could not fetch PropertyDescription from "+itemPath); + throw new ObjectNotFoundException("Could not fetch PropertyDescription from "+itemPath); } } -- cgit v1.2.3