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

matthew_swift
03.36.2007 de19fe2956d5a4b3817834191c51989664f8c47c
opends/src/server/org/opends/server/admin/AdminRuntimeException.java
@@ -26,34 +26,21 @@
 */
package org.opends.server.admin;
import org.opends.messages.Message;
/**
 * Exceptions thrown when interacting with administration framework that
 * applications are not expected to catch.
 * Exceptions thrown when interacting with administration framework
 * that applications are not expected to catch.
 */
public abstract class AdminRuntimeException extends RuntimeException {
  /**
   * Create an admin runtime exception.
   */
  protected AdminRuntimeException() {
    // No implementation required.
  }
  /**
   * Create an admin runtime exception with a cause.
   *
   * @param cause
   *          The cause.
   */
  protected AdminRuntimeException(Throwable cause) {
    super(cause);
  }
  // Message that explains the problem.
  private final Message message;
@@ -67,6 +54,7 @@
   */
  protected AdminRuntimeException(Message message, Throwable cause) {
    super(message.toString(), cause);
    this.message = message;
  }
@@ -79,5 +67,18 @@
   */
  protected AdminRuntimeException(Message message) {
    super(message.toString());
    this.message = message;
  }
  /**
   * Returns the message that explains the problem that occurred.
   *
   * @return Returns the message describing the problem that occurred
   *         (never <code>null</code>).
   */
  public Message getMessageObject() {
    return this.message;
  }
}