类 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.
- 从以下版本开始:
- 2.0.0
- 作者:
- Dave Syer
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Returns the exception type (ornull
for 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 (ornull
for a page that matches by exception).int
The HTTP status value that this error page matches.int
hashCode()
boolean
isGlobal()
Return if this error page is a global one (matches all unmatched status and exception types).
-
构造器详细资料
-
ErrorPage
-
ErrorPage
-
ErrorPage
-
-
方法详细资料
-
getPath
The 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").- 返回:
- the path that will be rendered for this error
-
getException
Returns the exception type (ornull
for a page that matches by status).- 返回:
- the exception type or
null
-
getStatus
The HTTP status value that this error page matches (ornull
for a page that matches by exception).- 返回:
- the status or
null
-
getStatusCode
public int getStatusCode()The HTTP status value that this error page matches.- 返回:
- the status value (or 0 for a page that matches any status)
-
getExceptionName
The exception type name.- 返回:
- the exception type name (or
null
if there is none)
-
isGlobal
public boolean isGlobal()Return if this error page is a global one (matches all unmatched status and exception types).- 返回:
- if this is a global error page
-
equals
-
hashCode
public int hashCode()
-