ConfigDataLocationNotFoundException Class — spring-boot Architecture
Architecture documentation for the ConfigDataLocationNotFoundException class in ConfigDataLocationNotFoundException.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationNotFoundException.java lines 31–91
public class ConfigDataLocationNotFoundException extends ConfigDataNotFoundException {
private final ConfigDataLocation location;
/**
* Create a new {@link ConfigDataLocationNotFoundException} instance.
* @param location the location that could not be found
*/
public ConfigDataLocationNotFoundException(ConfigDataLocation location) {
this(location, null);
}
/**
* Create a new {@link ConfigDataLocationNotFoundException} instance.
* @param location the location that could not be found
* @param cause the exception cause
*/
public ConfigDataLocationNotFoundException(ConfigDataLocation location, @Nullable Throwable cause) {
this(location, getMessage(location), cause);
}
/**
* Create a new {@link ConfigDataLocationNotFoundException} instance.
* @param location the location that could not be found
* @param message the exception message
* @param cause the exception cause
* @since 2.4.7
*/
public ConfigDataLocationNotFoundException(ConfigDataLocation location, String message, @Nullable Throwable cause) {
super(message, cause);
Assert.notNull(location, "'location' must not be null");
this.location = location;
}
/**
* Return the location that could not be found.
* @return the location
*/
public ConfigDataLocation getLocation() {
return this.location;
}
@Override
public @Nullable Origin getOrigin() {
return Origin.from(this.location);
}
@Override
public String getReferenceDescription() {
return getReferenceDescription(this.location);
}
private static String getMessage(ConfigDataLocation location) {
return String.format("Config data %s cannot be found", getReferenceDescription(location));
}
private static String getReferenceDescription(ConfigDataLocation location) {
return String.format("location '%s'", location);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free