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/IPAddressPropertyDefinition.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/admin/IPAddressPropertyDefinition.java b/opendj3-server-dev/src/server/org/opends/server/admin/IPAddressPropertyDefinition.java
index 486b0d6..e7d6413 100644
--- a/opendj3-server-dev/src/server/org/opends/server/admin/IPAddressPropertyDefinition.java
+++ b/opendj3-server-dev/src/server/org/opends/server/admin/IPAddressPropertyDefinition.java
@@ -109,7 +109,7 @@
*/
@Override
public void validateValue(InetAddress value)
- throws IllegalPropertyValueException {
+ throws PropertyException {
ifNull(value);
// No additional validation required.
@@ -122,14 +122,14 @@
*/
@Override
public InetAddress decodeValue(String value)
- throws IllegalPropertyValueStringException {
+ throws PropertyException {
ifNull(value);
try {
return InetAddress.getByName(value);
} catch (UnknownHostException e) {
// TODO: it would be nice to throw the cause.
- throw new IllegalPropertyValueStringException(this, value);
+ throw PropertyException.illegalPropertyValueException(this, value);
}
}
@@ -140,7 +140,7 @@
*/
@Override
public String encodeValue(InetAddress value)
- throws IllegalPropertyValueException {
+ throws PropertyException {
// We should return the host name if it is available, or the IP
// address if not.
--
Gitblit v1.10.0