QueueMessageDecodingError Class

  • java.lang.Object
    • com.azure.storage.queue.models.QueueMessageDecodingError

public final class QueueMessageDecodingError

Contains information about message that could not be decoded.

Constructor Summary

Constructor Description
QueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause)

Creates new QueueMessageDecodingError.

Method Summary

Modifier and Type Method and Description
Exception getCause()

Gets the Exception thrown at decoding attempt if present.

PeekedMessageItem getPeekedMessageItem()

Gets the PeekedMessageItem that has been peeked and could not be decoded.

QueueAsyncClient getQueueAsyncClient()

Gets the async queue client that has received message.

QueueClient getQueueClient()

Gets the queue client that has received message.

QueueMessageItem getQueueMessageItem()

Gets the QueueMessageItem that has been received and could not be decoded.

Methods inherited from java.lang.Object

Constructor Details

QueueMessageDecodingError

public QueueMessageDecodingError(QueueAsyncClient queueAsyncClient, QueueClient queueClient, QueueMessageItem queueMessageItem, PeekedMessageItem peekedMessageItem, Exception cause)

Creates new QueueMessageDecodingError.

Parameters:

queueAsyncClient - the QueueAsyncClient of the queue that has received message.
queueClient - the QueueClient of the queue that has received message.
queueMessageItem - the QueueMessageItem that has been received and could not be decoded.
peekedMessageItem - the PeekedMessageItem that has been peeked and could not be decoded.
cause - the Exception thrown at decoding attempt if present.

Method Details

getCause

public Exception getCause()

Gets the Exception thrown at decoding attempt if present.

Returns:

the Exception thrown at decoding attempt if present.

getPeekedMessageItem

public PeekedMessageItem getPeekedMessageItem()

Gets the PeekedMessageItem 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.

getQueueAsyncClient

public QueueAsyncClient getQueueAsyncClient()

Gets the async queue client that has received message.

Returns:

the queue client that has received message.

getQueueClient

public QueueClient getQueueClient()

Gets the queue client that has received message.

Returns:

the queue client that has received message.

getQueueMessageItem

public QueueMessageItem getQueueMessageItem()

Gets the QueueMessageItem 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.

Applies to