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

matthew_swift
03.36.2007 de19fe2956d5a4b3817834191c51989664f8c47c
opends/src/server/org/opends/server/admin/PropertyIsMandatoryException.java
@@ -29,6 +29,10 @@
import static org.opends.messages.AdminMessages.*;
/**
 * Thrown when an attempt is made to remove a mandatory property.
 */
@@ -44,22 +48,11 @@
  /**
   * Create a new property is mandatory exception.
   *
   * @param d
   * @param pd
   *          The property definition.
   */
  public PropertyIsMandatoryException(PropertyDefinition<?> d) {
    super(d);
  }
  /**
   * {@inheritDoc}
   */
  @Override
  public String getMessage() {
    return "The property \"" + getPropertyDefinition().getName()
        + "\" must be specified as it is mandatory";
  public PropertyIsMandatoryException(PropertyDefinition<?> pd) {
    super(pd, ERR_PROPERTY_IS_MANDATORY_EXCEPTION.get(pd.getName()));
  }
}