Interface ChannelExceptionHandler<T>
-
- Type Parameters:
T- the type of messages of theChannel
- All Known Implementing Classes:
DelegatingChannelExceptionHandler,ErrorThrowingChannelExceptionHandler
public interface ChannelExceptionHandler<T>Whenever an exception is thrown within aFilteror the finalAction, theChannelExceptionHandleris invoked.- See Also:
- EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidhandleBubbledUpException(BubbleUpWrappedException e)voidhandleFilterException(ProcessingContext<T> message, Exception e)Method, that is called, when an exception is thrown inside aFilter.voidhandleSubscriberException(ProcessingContext<T> message, Exception e)When the delivery should be aborted, this method is called to handle the exception.booleanshouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e)When an exception is thrown inside the final action, this message can decide, if the message should be ignored or if the delivery should be aborted andhandleSubscriberExceptionshould be called.
-
-
-
Method Detail
-
shouldSubscriberErrorBeHandledAndDeliveryAborted
boolean shouldSubscriberErrorBeHandledAndDeliveryAborted(ProcessingContext<T> message, Exception e)
When an exception is thrown inside the final action, this message can decide, if the message should be ignored or if the delivery should be aborted andhandleSubscriberExceptionshould be called.- Parameters:
message- the message, that caused the exceptione- the thrown exception- Returns:
- if the delivery should be aborted and the exception be handled;
falseif the exception should be ignored
-
handleSubscriberException
void handleSubscriberException(ProcessingContext<T> message, Exception e)
When the delivery should be aborted, this method is called to handle the exception.- Parameters:
message- the message, that caused the exceptione- the thrown exception
-
handleFilterException
void handleFilterException(ProcessingContext<T> message, Exception e)
Method, that is called, when an exception is thrown inside aFilter.- Parameters:
message- the message, that caused the exceptione- the thrown exception
-
handleBubbledUpException
default void handleBubbledUpException(BubbleUpWrappedException e)
-
-