From 1c35783cec1e6444626b78b7978151ff5723e6ab Mon Sep 17 00:00:00 2001
From: jcambon <jcambon@localhost>
Date: Fri, 05 Dec 2008 16:40:29 +0000
Subject: [PATCH] Fix for Issue #3644 : dsconfig failure without error message.
---
opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
index b5bcf32..e649e07 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
@@ -623,6 +623,23 @@
/**
+ * Creates an argument exception which should be used when a child
+ * component does not exist.
+ *
+ * @param componentName
+ * The component name.
+ * @return Returns an argument exception.
+ */
+ public static ArgumentException unknownValueForChildComponent(
+ String componentName) {
+ Message msg = ERR_DSCFG_ERROR_FINDER_NO_CHILDREN.get(
+ componentName);
+ return new ArgumentException(msg);
+ }
+
+
+
+ /**
* Creates a CLI exception which should be used when a managed
* object is retrieved but does not have the correct type
* appropriate for the associated sub-command.
--
Gitblit v1.10.0