Home / Class/ InvalidConfigurationPropertyValueException Class — spring-boot Architecture

InvalidConfigurationPropertyValueException Class — spring-boot Architecture

Architecture documentation for the InvalidConfigurationPropertyValueException class in InvalidConfigurationPropertyValueException.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/InvalidConfigurationPropertyValueException.java lines 29–84

@SuppressWarnings("serial")
public class InvalidConfigurationPropertyValueException extends RuntimeException {

	private final String name;

	private final @Nullable Object value;

	private final @Nullable String reason;

	/**
	 * Creates a new instance for the specified property {@code name} and {@code value},
	 * including a {@code reason} why the value is invalid.
	 * @param name the name of the property in canonical format
	 * @param value the value of the property, can be {@code null}
	 * @param reason a human-readable text that describes why the reason is invalid.
	 * Starts with an upper-case and ends with a dot. Several sentences and carriage
	 * returns are allowed.
	 */
	public InvalidConfigurationPropertyValueException(String name, @Nullable Object value, @Nullable String reason) {
		this(name, value, reason, null);
	}

	InvalidConfigurationPropertyValueException(String name, @Nullable Object value, @Nullable String reason,
			@Nullable Throwable cause) {
		super("Property " + name + " with value '" + value + "' is invalid: " + reason, cause);
		Assert.notNull(name, "'name' must not be null");
		this.name = name;
		this.value = value;
		this.reason = reason;
	}

	/**
	 * Return the name of the property.
	 * @return the property name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Return the invalid value, can be {@code null}.
	 * @return the invalid value
	 */
	public @Nullable Object getValue() {
		return this.value;
	}

	/**
	 * Return the reason why the value is invalid.
	 * @return the reason
	 */
	public @Nullable String getReason() {
		return this.reason;
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free