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

matthew_swift
31.48.2007 bedc84d04ab003c2dfec1119e95478c59599c043
opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java
@@ -421,6 +421,22 @@
  /**
   * Creates an argument exception which should be used when a
   * component category argument is not recognized.
   *
   * @param categoryName
   *          The unrecognized component category.
   * @return Returns an argument exception.
   */
  public static ArgumentException unknownCategory(String categoryName) {
    int msgID = MSGID_DSCFG_ERROR_CATEGORY_UNRECOGNIZED;
    String msg = getMessage(msgID, categoryName);
    return new ArgumentException(msgID, msg);
  }
  /**
   * Creates an argument exception which should be used when a
   * property name is not recognized.
   *
   * @param d
@@ -440,6 +456,22 @@
  /**
   * Creates an argument exception which should be used when a
   * property name is not recognized.
   *
   * @param name
   *          The unrecognized property name.
   * @return Returns an argument exception.
   */
  public static ArgumentException unknownProperty(String name) {
    int msgID = MSGID_DSCFG_ERROR_PROPERTY_UNRECOGNIZED_NO_DEFN;
    String message = getMessage(msgID, name);
    return new ArgumentException(msgID, message);
  }
  /**
   * Creates an argument exception which should be used when a
   * sub-type argument in a create-xxx sub-command is not recognized.
   *
   * @param r
@@ -465,7 +497,7 @@
   * object type argument is not recognized.
   *
   * @param typeName
   *          The unrecognized property sub-type.
   *          The unrecognized component type.
   * @return Returns an argument exception.
   */
  public static ArgumentException unknownType(String typeName) {
@@ -478,6 +510,25 @@
  /**
   * Creates an argument exception which should be used when a managed
   * object type argument is not associated with a category.
   *
   * @param categoryName
   *          The component category.
   * @param typeName
   *          The unrecognized component type.
   * @return Returns an argument exception.
   */
  public static ArgumentException unknownTypeInCategory(String categoryName,
      String typeName) {
    int msgID = MSGID_DSCFG_ERROR_CATEGORY_TYPE_UNRECOGNIZED;
    String msg = getMessage(msgID, typeName, categoryName);
    return new ArgumentException(msgID, msg);
  }
  /**
   * Creates an argument exception which should be used when a managed
   * object is retrieved but does not have the correct type
   * appropriate for the associated sub-command.
   *