public class ErrorHandler extends Object implements Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ErrorHandler> |
__TYPE_ARG |
static String |
DEFAULT_ERROR_HANDLER_TEMPLATE
The default template to use for rendering
|
Constructor and Description |
---|
ErrorHandler(ErrorHandler delegate) |
ErrorHandler(Object delegate) |
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
|
boolean |
equals(Object o) |
ErrorHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static ErrorHandler |
newInstance(ErrorHandler arg) |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<ErrorHandler> __TYPE_ARG
public static final String DEFAULT_ERROR_HANDLER_TEMPLATE
public ErrorHandler(ErrorHandler delegate)
public ErrorHandler(Object delegate)
public ErrorHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlepublic static ErrorHandler create(Vertx vertx)
vertx
- public static ErrorHandler create(Vertx vertx, String errorTemplateName, boolean displayExceptionDetails)
vertx
- errorTemplateName
- the error template name - will be looked up from the classpathdisplayExceptionDetails
- true if exception details should be displayedpublic static ErrorHandler create(Vertx vertx, boolean displayExceptionDetails)
vertx
- displayExceptionDetails
- true if exception details should be displayedpublic static ErrorHandler create(Vertx vertx, String errorTemplateName)
vertx
- errorTemplateName
- the error template name - will be looked up from the classpathpublic static ErrorHandler newInstance(ErrorHandler arg)
Copyright © 2022 Eclipse. All rights reserved.