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

jvergara
13.20.2009 a837c0600e8855892427c493e164147a8f68d6f4
opends/src/ads/org/opends/admin/ads/ADSContextException.java
@@ -108,6 +108,10 @@
     */
    UNEXPECTED_ADS_BACKEND_TYPE(),
    /**
     * Error merging with another ADSContext.
     */
    ERROR_MERGING,
    /**
     * Unexpected error (potential bug).
     */
    ERROR_UNEXPECTED();
@@ -133,7 +137,19 @@
   */
  public ADSContextException(ErrorType error, Throwable x)
  {
    super(getMessage(error, x), x);
    this(error, getMessage(error, x), x);
  }
  /**
   * Creates an ADSContextException of the given error type with the provided
   * error cause and message.
   * @param error the error type.
   * @param msg the message describing the error.
   * @param x the throwable that generated this exception.
   */
  public ADSContextException(ErrorType error, Message msg, Throwable x)
  {
    super(msg);
    this.error = error;
    this.embeddedException = x;
    toString = "ADSContextException: error type "+error+".";