Package me.ehp246.aufjms.api.dispatch
Interface DispatchListener.OnException
- All Superinterfaces:
DispatchListener
- All Known Implementing Classes:
DispatchLogger
- Enclosing interface:
- DispatchListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static non-sealed interface DispatchListener.OnException
extends DispatchListener
Invoked when an Exception has happened and before it is thrown
to the caller interrupting JmsDispatchFn.send(JmsDispatch).
msg might be null depending on the cause.
If an exception happens inside the listener, it will be re-thrown as is. It
would be a good practice to set the cause to e when throwing from the
listener.
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.ehp246.aufjms.api.dispatch.DispatchListener
DispatchListener.OnDispatch, DispatchListener.OnException, DispatchListener.PostSend, DispatchListener.PreSend -
Method Summary
Modifier and TypeMethodDescriptionvoidonException(JmsDispatch dispatch, JmsMsg msg, Exception e)
-
Method Details
-
onException
-