From d46701cdbecec6f6c10f57432f3e6a484752f42c Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Sat, 18 Jan 2014 00:55:24 +0000
Subject: [PATCH] Simplify config framework exception hierarchy by removing and pulling up the following exceptions:
---
opendj3-server-dev/src/server/org/opends/server/admin/PropertyDefinition.java | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/admin/PropertyDefinition.java b/opendj3-server-dev/src/server/org/opends/server/admin/PropertyDefinition.java
index a8fd20b..58c2229 100644
--- a/opendj3-server-dev/src/server/org/opends/server/admin/PropertyDefinition.java
+++ b/opendj3-server-dev/src/server/org/opends/server/admin/PropertyDefinition.java
@@ -365,11 +365,11 @@
* @param value
* The property string value (must not be <code>null</code>).
* @return Returns the decoded property value.
- * @throws IllegalPropertyValueStringException
+ * @throws PropertyException
* If the property value string is invalid.
*/
public abstract T decodeValue(String value)
- throws IllegalPropertyValueStringException;
+ throws PropertyException;
@@ -383,10 +383,10 @@
* @param value
* The property value (must not be <code>null</code>).
* @return Returns the encoded property string value.
- * @throws IllegalPropertyValueException
+ * @throws PropertyException
* If the property value is invalid.
*/
- public String encodeValue(T value) throws IllegalPropertyValueException {
+ public String encodeValue(T value) throws PropertyException {
ifNull(value);
return value.toString();
@@ -602,10 +602,10 @@
* @param value
* The property value to be normalized.
* @return Returns the normalized property value.
- * @throws IllegalPropertyValueException
+ * @throws PropertyException
* If the property value is invalid.
*/
- public String normalizeValue(T value) throws IllegalPropertyValueException {
+ public String normalizeValue(T value) throws PropertyException {
ifNull(value);
return encodeValue(value);
@@ -653,11 +653,11 @@
*
* @param value
* The property value (must not be <code>null</code>).
- * @throws IllegalPropertyValueException
+ * @throws PropertyException
* If the property value is invalid.
*/
public abstract void validateValue(T value)
- throws IllegalPropertyValueException;
+ throws PropertyException;
--
Gitblit v1.10.0