Class SubscriptionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.persequor.extension.subscription.SubscriptionFailedException
- All Implemented Interfaces:
IFailedReasonDetails
,HasAdditionalData<IFailedReasonDetails>
,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionFailedException
(String message) SubscriptionFailedException
(String message, String failedReason) SubscriptionFailedException
(String message, String failedReason, Throwable cause) SubscriptionFailedException
(String message, Throwable cause) -
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
-
SubscriptionFailedException
public SubscriptionFailedException() -
SubscriptionFailedException
-
SubscriptionFailedException
-
SubscriptionFailedException
-
SubscriptionFailedException
-
SubscriptionFailedException
-
-
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>
-