summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java106
1 files changed, 44 insertions, 62 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java b/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
index d0f6b4c3..dde3d64e 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
@@ -20,38 +20,32 @@
package com.netscape.certsrv.selftests;
-
///////////////////////
// import statements //
///////////////////////
-
-
//////////////////////
// class definition //
//////////////////////
/**
* This class implements a duplicate self test exception.
- * EDuplicateSelfTestExceptions are derived from ESelfTestExceptions
- * in order to allow users to easily do self tests without try-catch clauses.
- *
+ * EDuplicateSelfTestExceptions are derived from ESelfTestExceptions in order to
+ * allow users to easily do self tests without try-catch clauses.
+ *
* EDuplicateSelfTestExceptions should be caught by SelfTestSubsystem managers.
* <P>
*
* @version $Revision$, $Date$
*/
-public class EDuplicateSelfTestException
- extends ESelfTestException {
- ////////////////////////
+public class EDuplicateSelfTestException extends ESelfTestException {
+ // //////////////////////
// default parameters //
- ////////////////////////
-
-
+ // //////////////////////
- ///////////////////////
+ // /////////////////////
// helper parameters //
- ///////////////////////
+ // /////////////////////
/**
*
@@ -62,32 +56,27 @@ public class EDuplicateSelfTestException
private String mInstanceParameter = null;
private String mInstanceValue = null;
- ////////////////////////////////////////////
+ // //////////////////////////////////////////
// EDuplicateSelfTestException parameters //
- ////////////////////////////////////////////
+ // //////////////////////////////////////////
-
-
- ///////////////////////////////////////////////
+ // /////////////////////////////////////////////
// ESelfTestException parameters (inherited) //
- ///////////////////////////////////////////////
-
+ // /////////////////////////////////////////////
-
- /////////////////////
+ // ///////////////////
// default methods //
- /////////////////////
+ // ///////////////////
/**
* Constructs a "duplicate" self test exception.
* <P>
- *
+ *
* @param instanceName duplicate "instanceName" exception details
*/
public EDuplicateSelfTestException(String instanceName) {
- super("The self test plugin property named "
- + instanceName
- + " already exists.");
+ super("The self test plugin property named " + instanceName
+ + " already exists.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -100,20 +89,17 @@ public class EDuplicateSelfTestException
}
/**
- * Constructs a "duplicate" self test exception where the value is always
- * a duplicate from a name/value pair
+ * Constructs a "duplicate" self test exception where the value is always a
+ * duplicate from a name/value pair
* <P>
- *
+ *
* @param instanceName duplicate "instanceName" exception details
* @param instanceValue duplicate "instanceValue" exception details
*/
- public EDuplicateSelfTestException(String instanceName,
- String instanceValue) {
- super("The self test plugin property named "
- + instanceName
- + " contains a value of "
- + instanceValue
- + " which already exists.");
+ public EDuplicateSelfTestException(String instanceName, String instanceValue) {
+ super("The self test plugin property named " + instanceName
+ + " contains a value of " + instanceValue
+ + " which already exists.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -134,18 +120,16 @@ public class EDuplicateSelfTestException
* duplicate from a substore.parameter/value pair; (the value passed in may
* be null).
* <P>
- *
+ *
* @param instanceStore duplicate "instanceStore" exception details
* @param instanceParameter duplicate "instanceParameter" exception details
- * @param instanceValue duplicate "instanceValue" exception details
- * (may be null)
+ * @param instanceValue duplicate "instanceValue" exception details (may be
+ * null)
*/
public EDuplicateSelfTestException(String instanceStore,
- String instanceParameter,
- String instanceValue) {
- super("The self test plugin property named "
- + instanceStore + "." + instanceParameter
- + " is a duplicate.");
+ String instanceParameter, String instanceValue) {
+ super("The self test plugin property named " + instanceStore + "."
+ + instanceParameter + " is a duplicate.");
// strip preceding/trailing whitespace
// from passed-in String parameters
@@ -165,14 +149,14 @@ public class EDuplicateSelfTestException
mInstanceValue = instanceValue;
}
- ////////////////////
+ // //////////////////
// helper methods //
- ////////////////////
+ // //////////////////
/**
* Returns the instance name associated with this self test.
* <P>
- *
+ *
* @return name portion of the name/value pair
*/
public String getInstanceName() {
@@ -182,7 +166,7 @@ public class EDuplicateSelfTestException
/**
* Returns the store associated with this self test.
* <P>
- *
+ *
* @return substore portion of the substore.parameter/value pair
*/
public String getInstanceStore() {
@@ -192,7 +176,7 @@ public class EDuplicateSelfTestException
/**
* Returns the parameter associated with this self test.
* <P>
- *
+ *
* @return parameter portion of the substore.parameter/value pair
*/
public String getInstanceParameter() {
@@ -202,27 +186,25 @@ public class EDuplicateSelfTestException
/**
* Returns the value associated with this self test.
* <P>
- *
+ *
* @return value portion of the name/value pair
*/
public String getInstanceValue() {
return mInstanceValue;
}
- /////////////////////////////////////////
+ // ///////////////////////////////////////
// EDuplicateSelfTestException methods //
- /////////////////////////////////////////
-
-
+ // ///////////////////////////////////////
- ////////////////////////////////////////////
+ // //////////////////////////////////////////
// ESelfTestException methods (inherited) //
- ////////////////////////////////////////////
+ // //////////////////////////////////////////
- /* Note that all of the following ESelfTestException methods
- * are inherited from the ESelfTestException class:
- *
+ /*
+ * Note that all of the following ESelfTestException methods are inherited
+ * from the ESelfTestException class:
+ *
* public ESelfTestException( String msg );
*/
}
-