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 ErrorPageGenerator
request
- Request
status
- response statusreasonPhrase
- response reason phrasedescription
- extra description. Might be nullexception
- Throwable
, that caused the error. Might be nullCopyright © 2014 Oracle Corporation. All rights reserved.