From a94c41b1759c23f849376a5f5448bc6e819f1c11 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Sat, 18 Jan 2014 00:58:42 +0000
Subject: [PATCH] Simplify config framework exception hierarchy by removing and pulling up the following exceptions:

---
 opendj-config/src/main/java/org/forgerock/opendj/config/AggregationPropertyDefinition.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/AggregationPropertyDefinition.java b/opendj-config/src/main/java/org/forgerock/opendj/config/AggregationPropertyDefinition.java
index b23167a..ee96379 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/AggregationPropertyDefinition.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/AggregationPropertyDefinition.java
@@ -818,8 +818,8 @@
         try {
             validateValue(value, options);
             return value;
-        } catch (IllegalPropertyValueException e) {
-            throw new IllegalPropertyValueStringException(this, value);
+        } catch (PropertyException e) {
+            throw PropertyException.illegalPropertyValueException(this, value);
         }
     }
 
@@ -952,7 +952,7 @@
             Reference<C, S> reference = Reference.parseName(parentPath, relationDefinition, value);
             return reference.getNormalizedName();
         } catch (IllegalArgumentException e) {
-            throw new IllegalPropertyValueException(this, value);
+            throw PropertyException.illegalPropertyValueException(this, value);
         }
     }
 
@@ -984,7 +984,7 @@
         try {
             Reference.parseName(parentPath, relationDefinition, value);
         } catch (IllegalArgumentException e) {
-            throw new IllegalPropertyValueException(this, value);
+            throw PropertyException.illegalPropertyValueException(this, value);
         }
     }
 

--
Gitblit v1.10.0