public class ErrorPage
extends java.lang.Object
| Constructor and Description |
|---|
ErrorPage(java.lang.Class<? extends java.lang.Throwable> exception,
java.lang.String path) |
ErrorPage(org.springframework.http.HttpStatus status,
java.lang.String path) |
ErrorPage(java.lang.String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<? extends java.lang.Throwable> |
getException()
Returns the exception type (or
null for a page that matches by status). |
java.lang.String |
getExceptionName()
The exception type name.
|
java.lang.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 (or
null 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).
|
public ErrorPage(java.lang.String path)
public ErrorPage(org.springframework.http.HttpStatus status,
java.lang.String path)
public ErrorPage(java.lang.Class<? extends java.lang.Throwable> exception,
java.lang.String path)
public java.lang.String getPath()
public java.lang.Class<? extends java.lang.Throwable> getException()
null for a page that matches by status).nullpublic org.springframework.http.HttpStatus getStatus()
null for a page that
matches by exception).nullpublic int getStatusCode()
public java.lang.String getExceptionName()
null if there is none)public boolean isGlobal()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object