summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/base/EBaseException.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/base/EBaseException.java')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/base/EBaseException.java33
1 files changed, 20 insertions, 13 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/base/EBaseException.java b/pki/base/common/src/com/netscape/certsrv/base/EBaseException.java
index e58aaca2f..26def60f5 100644
--- a/pki/base/common/src/com/netscape/certsrv/base/EBaseException.java
+++ b/pki/base/common/src/com/netscape/certsrv/base/EBaseException.java
@@ -17,15 +17,13 @@
// --- END COPYRIGHT BLOCK ---
package com.netscape.certsrv.base;
-
import java.util.Locale;
-
/**
- * An exception with localizable error messages. It is the
- * base class for all exceptions in certificate server.
+ * An exception with localizable error messages. It is the
+ * base class for all exceptions in certificate server.
* <P>
- *
+ *
* @version $Revision$, $Date$
* @see java.text.MessageFormat
* @see com.netscape.certsrv.base.BaseResources
@@ -50,11 +48,12 @@ public class EBaseException extends Exception {
/**
* Constructs an instance of this exception with the given resource key.
- * If resource key is not found in the resource bundle, the resource key
+ * If resource key is not found in the resource bundle, the resource key
* specified is used as the error message.
+ *
* <pre>
- * new EBaseException(BaseResources.PERMISSION_DENIED);
- * new EBaseException("An plain error message");
+ * new EBaseException(BaseResources.PERMISSION_DENIED);
+ * new EBaseException(&quot;An plain error message&quot;);
* <P>
* @param msgFormat The error message resource key.
*/
@@ -65,11 +64,13 @@ public class EBaseException extends Exception {
/**
* Constructs an instance of this exception with the given resource key
- * and a parameter as a string.
+ * and a parameter as a string.
+ *
* <PRE>
- * new EBaseException(BaseResource.NO_CONFIG_FILE, fileName);
+ * new EBaseException(BaseResource.NO_CONFIG_FILE, fileName);
* </PRE>
* <P>
+ *
* @param msgFormat exception details in message string format
* @param param message string parameter
*/
@@ -80,8 +81,9 @@ public class EBaseException extends Exception {
}
/**
- * Constructs an instance of the exception given the resource key and
- * a exception parameter.
+ * Constructs an instance of the exception given the resource key and
+ * a exception parameter.
+ *
* <PRE>
* try {
* ...
@@ -90,6 +92,7 @@ public class EBaseException extends Exception {
* }
* </PRE>
* <P>
+ *
* @param msgFormat The resource key
* @param param The parameter as an exception
*/
@@ -103,6 +106,7 @@ public class EBaseException extends Exception {
* Constructs an instance of this exception given the resource key and
* an array of parameters.
* <P>
+ *
* @param msgFormat The resource key
* @param params Array of params
*/
@@ -114,7 +118,7 @@ public class EBaseException extends Exception {
/**
* Returns the list of parameters.
* <P>
- *
+ *
* @return List of parameters.
*/
public Object[] getParameters() {
@@ -124,6 +128,7 @@ public class EBaseException extends Exception {
/**
* Returns the exception string in the default locale.
* <P>
+ *
* @return The exception string in the default locale.
*/
public String toString() {
@@ -133,6 +138,7 @@ public class EBaseException extends Exception {
/**
* Returns the exception string in the given locale.
* <P>
+ *
* @param locale The locale
* @return The exception string in the given locale.
*/
@@ -143,6 +149,7 @@ public class EBaseException extends Exception {
/**
* Returns the given resource bundle name.
+ *
* @return the name of the resource bundle for this class.
*/
protected String getBundleName() {