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

matthew_swift
03.36.2007 de19fe2956d5a4b3817834191c51989664f8c47c
opends/src/server/org/opends/server/admin/PropertyIsSingleValuedException.java
@@ -29,9 +29,13 @@
import static org.opends.messages.AdminMessages.*;
/**
 * Thrown when an attempt is made to add more than value to a single-valued
 * property.
 * Thrown when an attempt is made to add more than value to a
 * single-valued property.
 */
public class PropertyIsSingleValuedException extends PropertyException {
@@ -45,22 +49,10 @@
  /**
   * Create a new property is single valued exception.
   *
   * @param d
   * @param pd
   *          The property definition.
   */
  public PropertyIsSingleValuedException(PropertyDefinition<?> d) {
    super(d);
  public PropertyIsSingleValuedException(PropertyDefinition<?> pd) {
    super(pd, ERR_PROPERTY_IS_SINGLE_VALUED_EXCEPTION.get(pd.getName()));
  }
  /**
   * {@inheritDoc}
   */
  @Override
  public String getMessage() {
    return "The property \"" + getPropertyDefinition().getName()
        + "\" must not contain more than one value";
  }
}