Class DuplicateKeyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
me.deecaad.core.file.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException extends Exception
This class outlines an Exception that occurs when 2 configuration files with a matching key are added to the same Configuration
See Also:
  • Constructor Details

    • DuplicateKeyException

      public DuplicateKeyException(String... keys)
    • DuplicateKeyException

      public DuplicateKeyException(Collection<String> keys)
  • Method Details

    • getKeys

      public String[] getKeys()
      Returns an array of all of the matching keys. The returned array will never be null, it will have at least 1 element, and none of the elements will be null.
      Returns:
      The matching keys.