public interface ErrorHandler extends io.vertx.core.Handler<RoutingContext>
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_DISPLAY_EXCEPTION_DETAILS
Should exception details be displayed by default?
|
static String |
DEFAULT_ERROR_HANDLER_TEMPLATE
The default template to use for rendering
|
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
create()
Create an error handler using defaults
|
static ErrorHandler |
create(boolean displayExceptionDetails)
Create an error handler
|
static ErrorHandler |
create(String errorTemplateName)
Create an error handler
|
static ErrorHandler |
create(String errorTemplateName,
boolean displayExceptionDetails)
Create an error handler
|
static final String DEFAULT_ERROR_HANDLER_TEMPLATE
static final boolean DEFAULT_DISPLAY_EXCEPTION_DETAILS
static ErrorHandler create()
static ErrorHandler create(String errorTemplateName, boolean displayExceptionDetails)
errorTemplateName
- the error template name - will be looked up from the classpathdisplayExceptionDetails
- true if exception details should be displayedstatic ErrorHandler create(boolean displayExceptionDetails)
displayExceptionDetails
- true if exception details should be displayedstatic ErrorHandler create(String errorTemplateName)
errorTemplateName
- the error template name - will be looked up from the classpathCopyright © 2018. All rights reserved.