public class LinkErrorContext extends SessionErrorContext
AmqpException occurs.AmqpException,
AmqpErrorContext,
Serialized Form| Constructor and Description |
|---|
LinkErrorContext(String namespace,
String entityPath,
String trackingId,
Integer linkCredit)
Creates a new instance with the AMQP link's
namespace and entityPath information. |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLinkCredit()
Gets the number of credits on the link when the error occurred.
|
String |
getTrackingId()
Gets the unique tracking identifier for this error.
|
String |
toString()
Creates a string representation of this ErrorContext.
|
getEntityPathgetNamespacepublic LinkErrorContext(String namespace, String entityPath, String trackingId, Integer linkCredit)
namespace and entityPath information. Allows for
optional information about the link if it was successfully opened such as linkCredit and
trackingId.namespace - The service namespace of the error context.entityPath - The remote container the AMQP receive link is fetching messages from.trackingId - The tracking id for the error. Tracking id can be null if the error was not thrown from
the remote AMQP message broker.linkCredit - the number of link credits the current AMQP link has when this error occurred, can be
null if the receive link has not opened yet.IllegalArgumentException - if namespace or entityPath is null or empty.public String getTrackingId()
null if the error was not thrown
from the AMQP message broker.public Integer getLinkCredit()
null if the link is not opened.public String toString()
toString in class SessionErrorContextCopyright © 2021 Microsoft Corporation. All rights reserved.