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

matthew_swift
08.52.2009 460075839833c278f128c1482638767cdc68bfc7
opendj-sdk/sdk/src/org/opends/sdk/DecodeException.java
@@ -31,8 +31,6 @@
import java.io.IOException;
import com.sun.opends.sdk.util.LocalizableException;
import com.sun.opends.sdk.util.Message;
@@ -46,7 +44,7 @@
public final class DecodeException extends IOException implements
    LocalizableException
{
  private final Message message;
  private final LocalizableMessage message;
  private final boolean isFatal;
@@ -60,7 +58,7 @@
   *          The message that explains the problem that occurred.
   * @return The new fatal decode exception.
   */
  public static DecodeException fatalError(Message message)
  public static DecodeException fatalError(LocalizableMessage message)
  {
    return new DecodeException(message, true, null);
  }
@@ -77,7 +75,7 @@
   *          The underlying cause of this exception.
   * @return The new fatal decode exception.
   */
  public static DecodeException fatalError(Message message,
  public static DecodeException fatalError(LocalizableMessage message,
      Throwable cause)
  {
    return new DecodeException(message, true, cause);
@@ -92,7 +90,7 @@
   *          The message that explains the problem that occurred.
   * @return The new non-fatal decode exception.
   */
  public static DecodeException error(Message message)
  public static DecodeException error(LocalizableMessage message)
  {
    return new DecodeException(message, false, null);
  }
@@ -109,7 +107,7 @@
   *          The underlying cause of this exception.
   * @return The new non-fatal decode exception.
   */
  public static DecodeException error(Message message, Throwable cause)
  public static DecodeException error(LocalizableMessage message, Throwable cause)
  {
    return new DecodeException(message, false, cause);
  }
@@ -117,7 +115,7 @@
  // Construction is provided via factory methods.
  private DecodeException(Message message, boolean isFatal,
  private DecodeException(LocalizableMessage message, boolean isFatal,
      Throwable cause)
  {
    super(message.toString(), cause);
@@ -130,9 +128,9 @@
  /**
   * Returns the message that explains the problem that occurred.
   *
   * @return Message of the problem
   * @return LocalizableMessage of the problem
   */
  public Message getMessageObject()
  public LocalizableMessage getMessageObject()
  {
    return message;
  }