org.catools.common.config.CConfigNotDefinedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common.config Show documentation
Show all versions of common.config Show documentation
The general configuration manager for CATools projects
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);
}
}