Class BatchDeliveryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.messaging.MessagingException
io.helidon.messaging.BatchDeliveryException
- All Implemented Interfaces:
Serializable
Structured partial or indeterminate batch delivery failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBatchDeliveryException(String message, Throwable cause, MessageBatch<?> batch, List<BatchItemOutcome> outcomes) Create a structured batch failure. -
Method Summary
Modifier and TypeMethodDescriptionMessageBatch<?> batch()Original batch.outcome(int index) Outcome for one original batch index.outcomes()Ordered item outcomes.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BatchDeliveryException
public BatchDeliveryException(String message, Throwable cause, MessageBatch<?> batch, List<BatchItemOutcome> outcomes) Create a structured batch failure.- Parameters:
message- non-null failure messagecause- non-null primary causebatch- non-null original batchoutcomes- non-null ordered outcome for every original item- Throws:
NullPointerException- if any argument or outcome isnullIllegalArgumentException- if the outcomes do not align with the batch, or every outcome succeeded
-
-
Method Details
-
batch
-
outcomes
-
outcome
Outcome for one original batch index.- Parameters:
index- item index- Returns:
- outcome
-