public class ErrorHandler extends Object implements Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<ErrorHandler> |
__TYPE_ARG |
Constructor and Description |
---|
ErrorHandler(ErrorHandler delegate) |
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
|
ErrorHandler |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static ErrorHandler |
newInstance(ErrorHandler arg) |
public static final TypeArg<ErrorHandler> __TYPE_ARG
public ErrorHandler(ErrorHandler delegate)
public ErrorHandler getDelegate()
public void handle(RoutingContext arg0)
Handler
handle
in interface Handler<RoutingContext>
arg0
- the event to handlepublic static ErrorHandler create()
public 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 displayedpublic static ErrorHandler create(boolean displayExceptionDetails)
displayExceptionDetails
- true if exception details should be displayedpublic static ErrorHandler create(String errorTemplateName)
errorTemplateName
- the error template name - will be looked up from the classpathpublic static ErrorHandler newInstance(ErrorHandler arg)
Copyright © 2017. All rights reserved.