Package com.persequor.extension.async
Class RejectMessageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.persequor.extension.async.AsynchronousProcessingException
com.persequor.extension.async.RejectMessageException
- All Implemented Interfaces:
IFailedReasonDetails
,HasAdditionalData<IFailedReasonDetails>
,Serializable
public class RejectMessageException
extends AsynchronousProcessingException
implements IFailedReasonDetails
Throw this exception from within an asynchronous message listener in order to stop processing and send the message directly to Saga issues storage
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRejectMessageException
(String message) RejectMessageException
(String message, String failedReason) RejectMessageException
(String message, String failedReason, Throwable throwable) RejectMessageException
(String message, Throwable throwable) RejectMessageException
(T throwable) -
Method Summary
Modifier and TypeMethodDescriptionThe type of error, must be one ofIFailedReasonRegistry.values()
You should write the details in such a way that an operator knows what to do to resolve it and make a decision as to whether the Event/Document should be reprocessed by the queue.withAdditionalData
(Consumer<AdditionalData> withData) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
additionalData
-
-
Constructor Details
-
RejectMessageException
-
RejectMessageException
-
RejectMessageException
-
RejectMessageException
-
RejectMessageException
-
RejectMessageException
public RejectMessageException(T throwable)
-
-
Method Details
-
getIssueDetails
Description copied from interface:IFailedReasonDetails
You should write the details in such a way that an operator knows what to do to resolve it and make a decision as to whether the Event/Document should be reprocessed by the queue.- Specified by:
getIssueDetails
in interfaceIFailedReasonDetails
- Returns:
- A description of what the issue is
-
getFailedReason
Description copied from interface:IFailedReasonDetails
The type of error, must be one ofIFailedReasonRegistry.values()
- Specified by:
getFailedReason
in interfaceIFailedReasonDetails
- Returns:
- The type of error
-
getAdditionalData
- Specified by:
getAdditionalData
in interfaceHasAdditionalData<IFailedReasonDetails>
-
withAdditionalData
- Specified by:
withAdditionalData
in interfaceHasAdditionalData<IFailedReasonDetails>
-