Package com.azure.storage.queue.models
Class QueueMessageDecodingError
java.lang.Object
com.azure.storage.queue.models.QueueMessageDecodingError
Contains information about message that could not be decoded.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause) Creates newQueueMessageDecodingError. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets theExceptionthrown at decoding attempt if present.Gets thePeekedMessageItemthat has been peeked and could not be decoded.Gets the async queue client that has received message.Gets the queue client that has received message.Gets theQueueMessageItemthat has been received and could not be decoded.
-
Constructor Details
-
QueueMessageDecodingError
public QueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause) Creates newQueueMessageDecodingError.- Parameters:
queueAsyncClient- theQueueAsyncClientof the queue that has received message.queueClient- theQueueClientof the queue that has received message.queueMessageItem- theQueueMessageItemthat has been received and could not be decoded.peekedMessageItem- thePeekedMessageItemthat has been peeked and could not be decoded.cause- theExceptionthrown at decoding attempt if present.
-
-
Method Details
-
getQueueAsyncClient
Gets the async queue client that has received message.- Returns:
- the queue client that has received message.
-
getQueueClient
Gets the queue client that has received message.- Returns:
- the queue client that has received message.
-
getQueueMessageItem
Gets theQueueMessageItemthat has been received and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
QueueMessageItemthat has been received and could not be decoded.
-
getPeekedMessageItem
Gets thePeekedMessageItemthat has been peeked and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
PeekedMessageItemthat has been peeked and could not be decoded.
-
getCause
Gets theExceptionthrown at decoding attempt if present.- Returns:
- the
Exceptionthrown at decoding attempt if present.
-