package de.lmu.ifi.dbs.elki.utilities.optionhandling;

import java.util.Collection;

/**
 * Pseudo error class that wraps multiple error reports into one.
 * 
 * This is meant for reporting re-parameterization errors.
 * 
 * @author Erich Schubert
 */
public class InternalParameterizationErrors extends ParameterException {
  /**
   * Serial version ID
   */
  private static final long serialVersionUID = 1L;

  /**
   * The errors that occurred.
   */
  private Collection<? extends Exception> internalErrors;

  /**
   * Constructor.
   * 
   * @param message Error message
   * @param internalErrors internal errors
   */
  public InternalParameterizationErrors(String message, Collection<? extends Exception> internalErrors) {
    super(message);
    this.internalErrors = internalErrors;
  }
  
  /**
   * @return the internalErrors
   */
  protected Collection<? extends Exception> getInternalErrors() {
    return internalErrors;
  }
}
@@ -797,24 +797,393 @@
  %7D%0A  %0A  /**%0A
+   * Constructor.%0A   * %0A   * @param message Error message%0A   * @param internalError internal error%0A   */%0A  public InternalParameterizationErrors(String message, Exception internalError) %7B%0A    super(message);%0A    final java.util.Vector%3CException%3E errors = new java.util.Vector%3CException%3E(1);%0A    errors.add(internalError);%0A    this.internalErrors = errors;%0A  %7D%0A  %0A  /**%0A
    * @return

Add constructor.