Class ErrorPage
- java.lang.Object
- org.springframework.boot.web.server.ErrorPage
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Class<? extends Throwable>
getException()
Returns the exception type (ornull
for a page that matches by status).String
getExceptionName()
The exception type name.String
getPath()
The path to render (usually implemented as a forward), starting with "/".org.springframework.http.HttpStatus
getStatus()
The HTTP status value that this error page matches (ornull
for a page that matches by exception).int
getStatusCode()
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).
Method Detail
getPath
public String 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").- Returns:
- the path that will be rendered for this error
getException
public Class<? extends Throwable> getException()
Returns the exception type (ornull
for a page that matches by status).- Returns:
- the exception type or
null
getStatus
public org.springframework.http.HttpStatus getStatus()
The HTTP status value that this error page matches (ornull
for a page that matches by exception).- Returns:
- the status or
null
getStatusCode
public int getStatusCode()
The HTTP status value that this error page matches.- Returns:
- the status value (or 0 for a page that matches any status)
getExceptionName
public String getExceptionName()
The exception type name.- Returns:
- 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).- Returns:
- if this is a global error page