mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
28.47.2010 f2160f4bd1c8ac67e5a86a6710d431e8932877f9
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;