summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2011-12-08 21:15:59 -0500
committerAde Lee <alee@redhat.com>2011-12-08 21:15:59 -0500
commit171aaece4f23709d33d180cf36eb3af5e454b0c9 (patch)
tree1485f9f0a7bd10de4ff25030db575dbb8dafae74 /pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
parentadad2fcee8a29fdb82376fbce07dedb11fccc182 (diff)
downloadpki-171aaece4f23709d33d180cf36eb3af5e454b0c9.tar.gz
pki-171aaece4f23709d33d180cf36eb3af5e454b0c9.tar.xz
pki-171aaece4f23709d33d180cf36eb3af5e454b0c9.zip
Revert "Formatting"
This reverts commit 32150d3ee32f8ac27118af7c792794b538c78a2f.
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, 62 insertions, 44 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 dde3d64e6..d0f6b4c32 100644
--- a/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
+++ b/pki/base/common/src/com/netscape/certsrv/selftests/EDuplicateSelfTestException.java
@@ -20,32 +20,38 @@
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 //
- // /////////////////////
+ ///////////////////////
/**
*
@@ -56,27 +62,32 @@ public class EDuplicateSelfTestException extends ESelfTestException {
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
@@ -89,17 +100,20 @@ public class EDuplicateSelfTestException extends ESelfTestException {
}
/**
- * 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
@@ -120,16 +134,18 @@ public class EDuplicateSelfTestException extends ESelfTestException {
* 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
@@ -149,14 +165,14 @@ public class EDuplicateSelfTestException extends ESelfTestException {
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() {
@@ -166,7 +182,7 @@ public class EDuplicateSelfTestException extends ESelfTestException {
/**
* Returns the store associated with this self test.
* <P>
- *
+ *
* @return substore portion of the substore.parameter/value pair
*/
public String getInstanceStore() {
@@ -176,7 +192,7 @@ public class EDuplicateSelfTestException extends ESelfTestException {
/**
* Returns the parameter associated with this self test.
* <P>
- *
+ *
* @return parameter portion of the substore.parameter/value pair
*/
public String getInstanceParameter() {
@@ -186,25 +202,27 @@ public class EDuplicateSelfTestException extends ESelfTestException {
/**
* 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 );
*/
}
+