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

org.catools.common.config.CConfigNotDefinedException Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package org.catools.common.config;

/** Signals which throws when attempt to use configuration value before define it. */
public class CConfigNotDefinedException extends RuntimeException {
  private static final String HELP =
      "\nTo work with configuration you need to defined it first.\n"
          + "We need all configuration parameters so we can use this information while you are using application in cli mode.\n"
          + "To do so you need to add this information to your default yaml file in following format:\n"
          + "- name: \"String: \"\n"
          + "  descriptions: \"String: \"\n"
          + "  defaultValue: \"String: \"\n"
          + "  required: \n"
          + "  sensitive: \n";

  public CConfigNotDefinedException(String configName) {
    super("Configuration is not defined: " + configName + HELP);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy