Constructor and Description |
---|
ErrorPage(Class<? extends Throwable> exception,
String path) |
ErrorPage(HttpStatus status,
String path) |
ErrorPage(String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<? extends Throwable> |
getException()
Returns the exception type (or
null 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 "/".
|
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(String path)
public ErrorPage(HttpStatus status, String path)
public String getPath()
public Class<? extends Throwable> getException()
null
for a page that matches by status).null
public HttpStatus getStatus()
null
for a page that
matches by exception).null
public int getStatusCode()
public String getExceptionName()
null
if there is none)public boolean isGlobal()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.