Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
Modifier and Type | Class and Description |
---|---|
class |
DefaultErrorHandler
Default error handler with content negotiation support and optionally mute log statement base
on status code or exception types.
|
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.
|
Modifier and Type | Method and Description |
---|---|
ErrorHandler |
RouterImpl.getErrorHandler() |
Modifier and Type | Method and Description |
---|---|
Router |
RouterImpl.error(ErrorHandler handler) |
Copyright © 2020. All rights reserved.