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

createException() — spring-boot Function Reference

Architecture documentation for the createException() function in InitializrService.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  68f3d00d_e975_a34a_9de3_481e8ce2cf2a["createException()"]
  2dca292a_e300_14f4_3a67_6e7bcf95bf27["validateResponse()"]
  2dca292a_e300_14f4_3a67_6e7bcf95bf27 -->|calls| 68f3d00d_e975_a34a_9de3_481e8ce2cf2a
  ec2f04e5_f7fd_269a_f650_1f3465143439["extractMessage()"]
  68f3d00d_e975_a34a_9de3_481e8ce2cf2a -->|calls| ec2f04e5_f7fd_269a_f650_1f3465143439
  style 68f3d00d_e975_a34a_9de3_481e8ce2cf2a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java lines 196–209

	private ReportableException createException(String url, ClassicHttpResponse httpResponse) {
		StatusLine statusLine = new StatusLine(httpResponse);
		String message = "Initializr service call failed using '" + url + "' - service returned "
				+ statusLine.getReasonPhrase();
		String error = extractMessage(httpResponse.getEntity());
		if (StringUtils.hasText(error)) {
			message += ": '" + error + "'";
		}
		else {
			int statusCode = statusLine.getStatusCode();
			message += " (unexpected " + statusCode + " error)";
		}
		throw new ReportableException(message);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createException() do?
createException() is a function in the spring-boot codebase.
What does createException() call?
createException() calls 1 function(s): extractMessage.
What calls createException()?
createException() is called by 1 function(s): validateResponse.

Analyze Your Own Codebase

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

Try Supermodel Free