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

kenneth_suter
15.34.2007 80c58327faaa4873369f6bb949e62792c2f708e0
opends/src/server/org/opends/server/util/LDIFException.java
@@ -25,6 +25,7 @@
 *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
 */
package org.opends.server.util;
import org.opends.messages.Message;
@@ -57,23 +58,18 @@
  // The line number of the last line read from the LDIF source.
  private final long lineNumber;
  // The unique message ID for the associated message.
  private final int messageID;
  /**
   * Creates a new LDIF exception with the provided information.
   *
   * @param  messageID  The unique message ID for the provided message.
   * @param  message    The message to use for this LDIF exception.
   */
  public LDIFException(int messageID, String message)
  public LDIFException(Message message)
  {
    super(message);
    this.messageID     = messageID;
    lineNumber         = -1;
    canContinueReading = true;
  }
@@ -83,16 +79,14 @@
  /**
   * Creates a new LDIF exception with the provided information.
   *
   * @param  messageID  The unique message ID for the provided message.
   * @param  message    The message to use for this LDIF exception.
   * @param  cause      The underlying cause that triggered this LDIF exception.
   */
  public LDIFException(int messageID, String message, Throwable cause)
  public LDIFException(Message message, Throwable cause)
  {
    super(message, cause);
    this.messageID     = messageID;
    lineNumber         = -1;
    canContinueReading = true;
  }
@@ -102,20 +96,18 @@
  /**
   * Creates a new LDIF exception with the provided information.
   *
   * @param  messageID           The unique message ID for the provided message.
   * @param  message             The message to use for this LDIF exception.
   * @param  lineNumber          The line number of the last line read from the
   *                             LDIF source.
   * @param  canContinueReading  Indicates whether it is possible to continue
   *                             reading from the LDIF input source.
   */
  public LDIFException(int messageID, String message, long lineNumber,
  public LDIFException(Message message, long lineNumber,
                       boolean canContinueReading)
  {
    super(message);
    this.messageID          = messageID;
    this.lineNumber         = lineNumber;
    this.canContinueReading = canContinueReading;
  }
@@ -126,7 +118,6 @@
   * Creates a new configuration exception with the provided message and
   * underlying cause.
   *
   * @param  messageID           The unique message ID for the provided message.
   * @param  message             The message to use for this LDIF exception.
   * @param  canContinueReading  Indicates whether it is possible to continue
   *                             reading from the LDIF input source.
@@ -135,13 +126,12 @@
   * @param  cause               The underlying cause that triggered this LDIF
   *                             exception.
   */
  public LDIFException(int messageID, String message, long lineNumber,
  public LDIFException(Message message, long lineNumber,
                       boolean canContinueReading, Throwable cause)
  {
    super(message, cause);
    this.messageID          = messageID;
    this.lineNumber         = lineNumber;
    this.canContinueReading = canContinueReading;
  }
@@ -149,18 +139,6 @@
  /**
   * Retrieves the message ID for this exception.
   *
   * @return  The message ID for this exception.
   */
  public int getMessageID()
  {
    return messageID;
  }
  /**
   * Retrieves the line number of the last line read from the LDIF source.
   *
   * @return  The line number of the last line read from the LDIF source.