Home / Function/ getMessage() — spring-boot Function Reference

getMessage() — spring-boot Function Reference

Architecture documentation for the getMessage() function in InvalidConfigDataPropertyException.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  01b61155_3dd1_7f24_7ee2_3e2bdd357759["getMessage()"]
  80fa1e9b_e532_1975_e267_4cce64612c5d["InvalidConfigDataPropertyException()"]
  80fa1e9b_e532_1975_e267_4cce64612c5d -->|calls| 01b61155_3dd1_7f24_7ee2_3e2bdd357759
  7437ce23_cb84_88cd_05ea_0748b72957a1["getName()"]
  01b61155_3dd1_7f24_7ee2_3e2bdd357759 -->|calls| 7437ce23_cb84_88cd_05ea_0748b72957a1
  bcfad5e4_63cf_b46d_111d_79f6688a2fc2["getOrigin()"]
  01b61155_3dd1_7f24_7ee2_3e2bdd357759 -->|calls| bcfad5e4_63cf_b46d_111d_79f6688a2fc2
  ab2d8162_8b78_6d7d_a007_edd56cb0b2e5["append()"]
  01b61155_3dd1_7f24_7ee2_3e2bdd357759 -->|calls| ab2d8162_8b78_6d7d_a007_edd56cb0b2e5
  85f0a081_97f6_451e_57ce_91dcf2b87d1f["toString()"]
  01b61155_3dd1_7f24_7ee2_3e2bdd357759 -->|calls| 85f0a081_97f6_451e_57ce_91dcf2b87d1f
  style 01b61155_3dd1_7f24_7ee2_3e2bdd357759 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/InvalidConfigDataPropertyException.java lines 130–153

	private static String getMessage(ConfigurationProperty property, boolean profileSpecific,
			@Nullable ConfigurationPropertyName replacement, @Nullable ConfigDataResource location) {
		StringBuilder message = new StringBuilder("Property '");
		message.append(property.getName());
		if (location != null) {
			message.append("' imported from location '");
			message.append(location);
		}
		message.append("' is invalid");
		if (profileSpecific) {
			message.append(" in a profile specific resource");
		}
		if (replacement != null) {
			message.append(" and should be replaced with '");
			message.append(replacement);
			message.append("'");
		}
		if (property.getOrigin() != null) {
			message.append(" [origin: ");
			message.append(property.getOrigin());
			message.append("]");
		}
		return message.toString();
	}

Domain

Subdomains

Called By

  • InvalidConfigDataPropertyException()

Frequently Asked Questions

What does getMessage() do?
getMessage() is a function in the spring-boot codebase.
What does getMessage() call?
getMessage() calls 4 function(s): append, getName, getOrigin, toString.
What calls getMessage()?
getMessage() is called by 1 function(s): InvalidConfigDataPropertyException.

Analyze Your Own Codebase

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

Try Supermodel Free