Package | Description |
---|---|
io.jooby |
Modifier and Type | Field and Description |
---|---|
static ErrorHandler |
ErrorHandler.DEFAULT
Default error handler with support for content-negotiation.
|
Modifier and Type | Method and Description |
---|---|
ErrorHandler |
Router.getErrorHandler()
Get the error handler.
|
ErrorHandler |
Jooby.getErrorHandler() |
default ErrorHandler |
ErrorHandler.then(ErrorHandler next)
Chain this error handler with next and produces a new error handler.
|
Modifier and Type | Method and Description |
---|---|
default Router |
Router.error(Class<? extends Throwable> type,
ErrorHandler handler)
Add a custom error handler that matches the given exception type.
|
Router |
Router.error(ErrorHandler handler)
Add a custom error handler.
|
Jooby |
Jooby.error(ErrorHandler handler) |
default Router |
Router.error(Predicate<StatusCode> predicate,
ErrorHandler handler)
Add a custom error handler that matches the given predicate.
|
default Router |
Router.error(StatusCode statusCode,
ErrorHandler handler)
Add a custom error handler that matches the given status code.
|
default ErrorHandler |
ErrorHandler.then(ErrorHandler next)
Chain this error handler with next and produces a new error handler.
|
Copyright © 2019. All rights reserved.