Class ErrorReportingInterceptor
java.lang.Object
io.fluxcapacitor.javaclient.tracking.handling.errorreporting.ErrorReportingInterceptor
- All Implemented Interfaces:
HandlerDecorator,HandlerInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerDecorator
HandlerDecorator.MergedDecoratorNested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
HandlerInterceptor.InterceptedHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninterceptHandling(Function<DeserializingMessage, Object> function, HandlerInvoker invoker) Intercepts a message before it's handled.protected voidreportError(Throwable e, HandlerInvoker invoker, DeserializingMessage cause) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerDecorator
andThenMethods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HandlerInterceptor
wrap
-
Constructor Details
-
ErrorReportingInterceptor
public ErrorReportingInterceptor()
-
-
Method Details
-
interceptHandling
public Function<DeserializingMessage,Object> interceptHandling(Function<DeserializingMessage, Object> function, HandlerInvoker invoker) Description copied from interface:HandlerInterceptorIntercepts a message before it's handled. The underlying handler can be invoked using the givenfunction.Before invoking the handler it is possible to inspect or modify the message. It is also possible to block a message simply by returning a function that returns without invoking the handler.
After invoking the handler it is possible to inspect or modify the response.
The given
invokercontains information about the underlying handler.- Specified by:
interceptHandlingin interfaceHandlerInterceptor
-
reportError
-