public class ErrorHandler extends Object implements Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| 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
|
Object |
getDelegate() |
void |
handle(RoutingContext arg0)
Something has happened, so handle it.
|
static ErrorHandler |
newInstance(ErrorHandler arg) |
public ErrorHandler(ErrorHandler delegate)
public Object getDelegate()
public void handle(RoutingContext arg0)
Handlerhandle 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 © 2015. All rights reserved.