Class ErrorPage
java.lang.Object
org.springframework.boot.web.server.ErrorPage
Simple server-independent abstraction for error pages. Roughly equivalent to the
 <error-page> element traditionally found in web.xml.
- Since:
- 2.0.0
- Author:
- Dave Syer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns the exception type (ornullfor a page that matches by status).The exception type name.getPath()The path to render (usually implemented as a forward), starting with "/".The HTTP status value that this error page matches (ornullfor a page that matches by exception).intThe HTTP status value that this error page matches.inthashCode()booleanisGlobal()Return if this error page is a global one (matches all unmatched status and exception types).
- 
Constructor Details- 
ErrorPage
- 
ErrorPage
- 
ErrorPage
 
- 
- 
Method Details- 
getPathThe path to render (usually implemented as a forward), starting with "/". A custom controller or servlet path can be used, or if the server supports it, a template path (e.g. "/error.jsp").- Returns:
- the path that will be rendered for this error
 
- 
getExceptionReturns the exception type (ornullfor a page that matches by status).- Returns:
- the exception type or null
 
- 
getStatusThe HTTP status value that this error page matches (ornullfor a page that matches by exception).- Returns:
- the status or null
 
- 
getStatusCodepublic int getStatusCode()The HTTP status value that this error page matches.- Returns:
- the status value (or 0 for a page that matches any status)
 
- 
getExceptionNameThe exception type name.- Returns:
- the exception type name (or nullif there is none)
 
- 
isGlobalpublic boolean isGlobal()Return if this error page is a global one (matches all unmatched status and exception types).- Returns:
- if this is a global error page
 
- 
equals
- 
hashCodepublic int hashCode()
 
-