Home / Class/ BundleContentNotWatchableException Class — spring-boot Architecture

BundleContentNotWatchableException Class — spring-boot Architecture

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

Entity Profile

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ssl/BundleContentNotWatchableException.java lines 24–44

class BundleContentNotWatchableException extends RuntimeException {

	private final BundleContentProperty property;

	BundleContentNotWatchableException(BundleContentProperty property) {
		super("The content of '%s' is not watchable. Only 'file:' resources are watchable, but '%s' has been set"
			.formatted(property.name(), property.value()));
		this.property = property;
	}

	private BundleContentNotWatchableException(String bundleName, BundleContentProperty property, Throwable cause) {
		super("The content of '%s' from bundle '%s' is not watchable'. Only 'file:' resources are watchable, but '%s' has been set"
			.formatted(property.name(), bundleName, property.value()), cause);
		this.property = property;
	}

	BundleContentNotWatchableException withBundleName(String bundleName) {
		return new BundleContentNotWatchableException(bundleName, this.property, this);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free