Home / Type/ ConfigDataNotFoundAction Type — spring-boot Architecture

ConfigDataNotFoundAction Type — spring-boot Architecture

Architecture documentation for the ConfigDataNotFoundAction type/interface in ConfigDataNotFoundAction.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataNotFoundAction.java lines 29–62

public enum ConfigDataNotFoundAction {

	/**
	 * Throw the exception to fail startup.
	 */
	FAIL {

		@Override
		void handle(Log logger, ConfigDataNotFoundException ex) {
			throw ex;
		}

	},

	/**
	 * Ignore the exception and continue processing the remaining locations.
	 */
	IGNORE {

		@Override
		void handle(Log logger, ConfigDataNotFoundException ex) {
			logger.trace(LogMessage.format("Ignoring missing config data %s", ex.getReferenceDescription()));
		}

	};

	/**
	 * Handle the given exception.
	 * @param logger the logger used for output {@code ConfigDataLocation})
	 * @param ex the exception to handle
	 */
	abstract void handle(Log logger, ConfigDataNotFoundException ex);

}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free