public class DefaultErrorPageGenerator extends Object implements ErrorPageGenerator
ErrorPageGenerator.| Constructor and Description |
|---|
DefaultErrorPageGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generate(Request request,
int status,
String reasonPhrase,
String description,
Throwable exception)
Returns the HTML representation of the error page corresponding to the
given HTTP response status.
|
public String generate(Request request, int status, String reasonPhrase, String description, Throwable exception)
generate in interface ErrorPageGeneratorrequest - Requeststatus - response statusreasonPhrase - response reason phrasedescription - extra description. Might be nullexception - Throwable, that caused the error. Might be nullCopyright © 2018 Oracle Corporation. All Rights Reserved.