All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.maven.propertiesenumplugin.DuplicateEnumFieldException Maven / Gradle / Ivy

Go to download

Never liked hard-coding your property keys? The maven-properties-enum-plugin allows you to generate enum types, holding all valid keys including javadoc. Your advantages: * You can't access on non-existing keys as it would cause compile errors * As it's an enum, you can use your IDE's auto-completion * You'll never have to check your properties keys again * You can see the property's value in the enum field's javadoc

There is a newer version: 1.4.0
Show newest version
/*
 * Copyright 2010 Michel Jung
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License.You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an
 * "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the
 * specific language governing permissions andlimitations under the License.
 */
package com.google.code.maven.propertiesenumplugin;

/**
 * This exception is thrown if a duplicate enum field name was detected.
 * 
 * @author Michel Jung
 */
public class DuplicateEnumFieldException extends RuntimeException {

  /**
   * 
   */
  private static final long serialVersionUID = 8038494599790703227L;

  /**
   * @param message
   *          the message
   */
  public DuplicateEnumFieldException(final String message) {
    super(message);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy