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

matthew_swift
03.36.2007 550b1d6e3a093fbf315c4bcee971736f722e0830
opendj-sdk/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";
  }
}