public class DefaultErrorPageGenerator extends java.lang.Object implements ErrorPageGenerator
ErrorPageGenerator.| Constructor and Description |
|---|
DefaultErrorPageGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generate(Request request,
int status,
java.lang.String reasonPhrase,
java.lang.String description,
java.lang.Throwable exception)
Returns the HTML representation of the error page corresponding to the
given HTTP response status.
|
public java.lang.String generate(Request request, int status, java.lang.String reasonPhrase, java.lang.String description, java.lang.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 © 2013 Oracle Corporation. All Rights Reserved.