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

errorMessageForRequestWithoutPathInfo() — spring-boot Function Reference

Architecture documentation for the errorMessageForRequestWithoutPathInfo() function in ErrorPageFilterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  31f22bac_a687_414e_a782_a50594267432["errorMessageForRequestWithoutPathInfo()"]
  ceb50e39_12a3_53c8_45a3_31278bc19af6["ErrorPage()"]
  31f22bac_a687_414e_a782_a50594267432 -->|calls| ceb50e39_12a3_53c8_45a3_31278bc19af6
  b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a["TestFilterChain()"]
  31f22bac_a687_414e_a782_a50594267432 -->|calls| b3fa6802_0fcb_6ddf_3e94_a5f8ad2cf83a
  822a5bf1_1210_1d34_4d64_7b2af9ebd5f5["doFilter()"]
  31f22bac_a687_414e_a782_a50594267432 -->|calls| 822a5bf1_1210_1d34_4d64_7b2af9ebd5f5
  style 31f22bac_a687_414e_a782_a50594267432 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/web/servlet/support/ErrorPageFilterTests.java lines 342–352

	@Test
	void errorMessageForRequestWithoutPathInfo(CapturedOutput output) throws IOException, ServletException {
		this.request.setServletPath("/test");
		this.filter.addErrorPages(new ErrorPage("/error"));
		this.chain = new TestFilterChain((request, response, chain) -> {
			chain.call();
			throw new RuntimeException();
		});
		this.filter.doFilter(this.request, this.response, this.chain);
		assertThat(output).contains("request [/test]");
	}

Domain

Subdomains

Frequently Asked Questions

What does errorMessageForRequestWithoutPathInfo() do?
errorMessageForRequestWithoutPathInfo() is a function in the spring-boot codebase.
What does errorMessageForRequestWithoutPathInfo() call?
errorMessageForRequestWithoutPathInfo() calls 3 function(s): ErrorPage, TestFilterChain, doFilter.

Analyze Your Own Codebase

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

Try Supermodel Free