Class SendBatchOperationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
io.awspring.cloud.sqs.operations.MessagingOperationFailedException
io.awspring.cloud.sqs.operations.SendBatchOperationFailedException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionSendBatchOperationFailedException(String msg, String endpoint, SendResult.Batch<?> sendBatchResult) Create an instance with the provided arguments.SendBatchOperationFailedException(String msg, String endpoint, SendResult.Batch<?> sendBatchResult, @Nullable Throwable cause) Create an instance with the provided arguments. -
Method Summary
Modifier and TypeMethodDescriptionGet the detailed result of the batch send attempt.<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.Methods inherited from class MessagingOperationFailedException
getEndpoint, getFailedMessage, getFailedMessagesMethods inherited from class NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
Get the detailed result of the batch send attempt.- Returns:
- the result.
-
getSendBatchResult
Get the detailed result of the batch send attempt, casting the result to the provided payload type.- Returns:
- the result.
-