Package com.hexagonkt.handlers
Class ExceptionHandler
-
- All Implemented Interfaces:
-
com.hexagonkt.handlers.Handler
public final class ExceptionHandler<T extends Object, E extends Exception> implements Handler<T>
After handlers are executed even if a filter don't call next handler (if after was added before filter).
After handlers' filters are always true because they are meant to be evaluated on the return. If they are not called in first place, they won't be executed on the return of the next handler. Their filter is evaluated after the
nextcall, not before.
-
-
Method Summary
-
-
Method Detail
-
getPredicate
Function1<Context<T>, Boolean> getPredicate()
-
getCallback
Function1<Context<T>, Context<T>> getCallback()
-
getException
final KClass<E> getException()
-
getClear
final Boolean getClear()
-
-
-
-