public interface ErrorHandler extends Handler<RoutingContext>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ERROR_HANDLER_TEMPLATE
The default template to use for rendering
|
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
create(Vertx vertx)
Create an error handler using defaults
|
static ErrorHandler |
create(Vertx vertx,
boolean displayExceptionDetails)
Create an error handler
|
static ErrorHandler |
create(Vertx vertx,
String errorTemplateName)
Create an error handler
|
static ErrorHandler |
create(Vertx vertx,
String errorTemplateName,
boolean displayExceptionDetails)
Create an error handler
|
static final String DEFAULT_ERROR_HANDLER_TEMPLATE
static ErrorHandler create(Vertx vertx)
static ErrorHandler create(Vertx vertx, 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(Vertx vertx, boolean displayExceptionDetails)
displayExceptionDetails
- true if exception details should be displayedstatic ErrorHandler create(Vertx vertx, String errorTemplateName)
errorTemplateName
- the error template name - will be looked up from the classpathCopyright © 2024 Eclipse. All rights reserved.