Class SendBatchOperationFailedException

All Implemented Interfaces:
Serializable

public class SendBatchOperationFailedException extends MessagingOperationFailedException
Exception representing a partial or complete failure in sending a batch of messages to an endpoint.
Since:
3.0
Author:
Tomaz Fernandes
See Also:
  • Constructor Details

    • SendBatchOperationFailedException

      public SendBatchOperationFailedException(String msg, String endpoint, SendResult.Batch<?> sendBatchResult)
      Create an instance with the provided arguments.
      Parameters:
      msg - the error message.
      endpoint - the endpoint to which the messages were sent to.
      sendBatchResult - the detailed result of the batch send attempt..
    • SendBatchOperationFailedException

      public SendBatchOperationFailedException(String msg, String endpoint, SendResult.Batch<?> sendBatchResult, @Nullable Throwable cause)
      Create an instance with the provided arguments.
      Parameters:
      msg - the error message.
      endpoint - the endpoint to which the messages were sent to.
      sendBatchResult - the detailed result of the send message.
      cause - the exception cause.
  • Method Details

    • getSendBatchResult

      public SendResult.Batch<?> getSendBatchResult()
      Get the detailed result of the batch send attempt.
      Returns:
      the result.
    • getSendBatchResult

      public <T> SendResult.Batch<T> getSendBatchResult(Class<T> payloadClass)
      Get the detailed result of the batch send attempt, casting the result to the provided payload type.
      Returns:
      the result.