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 theException
thrown at decoding attempt if present.Gets thePeekedMessageItem
that 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 theQueueMessageItem
that 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
- theQueueAsyncClient
of the queue that has received message.queueClient
- theQueueClient
of the queue that has received message.queueMessageItem
- theQueueMessageItem
that has been received and could not be decoded.peekedMessageItem
- thePeekedMessageItem
that has been peeked and could not be decoded.cause
- theException
thrown 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 theQueueMessageItem
that has been received and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
QueueMessageItem
that has been received and could not be decoded.
-
getPeekedMessageItem
Gets thePeekedMessageItem
that has been peeked and could not be decoded. The body of the message is as received, i.e. no decoding is attempted.- Returns:
- the
PeekedMessageItem
that has been peeked and could not be decoded.
-
getCause
Gets theException
thrown at decoding attempt if present.- Returns:
- the
Exception
thrown at decoding attempt if present.
-