From f2160f4bd1c8ac67e5a86a6710d431e8932877f9 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 28 May 2010 11:47:51 +0000
Subject: [PATCH] Synchronize SDK on java.net with internal repository.
---
sdk/src/com/sun/opends/sdk/tools/CLIException.java | 33 +++++++++++++++------------------
1 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/sdk/src/com/sun/opends/sdk/tools/CLIException.java b/sdk/src/com/sun/opends/sdk/tools/CLIException.java
index 44ab05b..8239c57 100755
--- a/sdk/src/com/sun/opends/sdk/tools/CLIException.java
+++ b/sdk/src/com/sun/opends/sdk/tools/CLIException.java
@@ -28,7 +28,6 @@
-
import org.opends.sdk.LocalizableException;
import org.opends.sdk.LocalizableMessage;
@@ -37,25 +36,23 @@
/**
- * Thrown to indicate that a problem occurred when interacting with the
- * client. For example, if input provided by the client was invalid.
+ * Thrown to indicate that a problem occurred when interacting with the client.
+ * For example, if input provided by the client was invalid.
*/
@SuppressWarnings("serial")
-final class CLIException extends Exception implements
- LocalizableException
+final class CLIException extends Exception implements LocalizableException
{
/**
- * Adapts any exception that may have occurred whilst reading input
- * from the console.
+ * Adapts any exception that may have occurred whilst reading input from the
+ * console.
*
* @param cause
- * The exception that occurred whilst reading input from the
- * console.
- * @return Returns a new CLI exception describing a problem that
- * occurred whilst reading input from the console.
+ * The exception that occurred whilst reading input from the console.
+ * @return Returns a new CLI exception describing a problem that occurred
+ * whilst reading input from the console.
*/
- static CLIException adaptInputException(Throwable cause)
+ static CLIException adaptInputException(final Throwable cause)
{
return new CLIException(Messages.ERR_CONSOLE_INPUT_ERROR.get(cause
.getMessage()), cause);
@@ -63,13 +60,17 @@
+ private final LocalizableMessage message;
+
+
+
/**
* Creates a new CLI exception with the provided message.
*
* @param message
* The message explaining the problem that occurred.
*/
- CLIException(LocalizableMessage message)
+ CLIException(final LocalizableMessage message)
{
super(message.toString());
this.message = message;
@@ -85,7 +86,7 @@
* @param cause
* The cause of this exception.
*/
- CLIException(LocalizableMessage message, Throwable cause)
+ CLIException(final LocalizableMessage message, final Throwable cause)
{
super(message.toString(), cause);
this.message = message;
@@ -93,10 +94,6 @@
- private final LocalizableMessage message;
-
-
-
public LocalizableMessage getMessageObject()
{
return message;
--
Gitblit v1.10.0