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

addErrorPages() — spring-boot Function Reference

Architecture documentation for the addErrorPages() function in ErrorPageFilter.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  75ced1f0_85df_8e68_65a1_6ff4db0a0747["addErrorPages()"]
  747f9fa0_7fa4_5549_de90_1614ff6b610d["isGlobal()"]
  75ced1f0_85df_8e68_65a1_6ff4db0a0747 -->|calls| 747f9fa0_7fa4_5549_de90_1614ff6b610d
  bc45ed5a_2564_b477_b953_22aa8607dabb["getPath()"]
  75ced1f0_85df_8e68_65a1_6ff4db0a0747 -->|calls| bc45ed5a_2564_b477_b953_22aa8607dabb
  0dc82c67_7020_e0e0_7ea5_65bca9bca660["getStatus()"]
  75ced1f0_85df_8e68_65a1_6ff4db0a0747 -->|calls| 0dc82c67_7020_e0e0_7ea5_65bca9bca660
  0cf09bcf_919c_af24_2f8d_0ea157033d31["getException()"]
  75ced1f0_85df_8e68_65a1_6ff4db0a0747 -->|calls| 0cf09bcf_919c_af24_2f8d_0ea157033d31
  style 75ced1f0_85df_8e68_65a1_6ff4db0a0747 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/ErrorPageFilter.java lines 278–291

	@Override
	public void addErrorPages(ErrorPage... errorPages) {
		for (ErrorPage errorPage : errorPages) {
			if (errorPage.isGlobal()) {
				this.global = errorPage.getPath();
			}
			else if (errorPage.getStatus() != null) {
				this.statuses.put(errorPage.getStatus().value(), errorPage.getPath());
			}
			else {
				this.exceptions.put(errorPage.getException(), errorPage.getPath());
			}
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does addErrorPages() do?
addErrorPages() is a function in the spring-boot codebase.
What does addErrorPages() call?
addErrorPages() calls 4 function(s): getException, getPath, getStatus, isGlobal.

Analyze Your Own Codebase

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

Try Supermodel Free