AmqpErrorContext Class
- java.
lang. Object - com.
azure. core. amqp. exception. AmqpErrorContext
- com.
Implements
public class AmqpErrorContext
implements Serializable
Provides context for an AmqpException that occurs in an AmqpConnection, AmqpSession, or AmqpLink.
Constructor Summary
Constructor | Description |
---|---|
AmqpErrorContext(String namespace) |
Creates a new instance with the provided |
AmqpErrorContext(String namespace, Map<String,Object> errorInfo) |
Creates a new instance with the provided |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getErrorInfo()
Gets the map carrying information about the error condition. |
String |
getNamespace()
Gets the namespace for this error. |
String |
toString()
Creates a string representation of this Error |
Methods inherited from java.lang.Object
Constructor Details
AmqpErrorContext
public AmqpErrorContext(String namespace)
Creates a new instance with the provided namespace
.
Parameters:
AmqpErrorContext
public AmqpErrorContext(String namespace, Map
Creates a new instance with the provided namespace
.
Parameters:
Method Details
getErrorInfo
public Map
Gets the map carrying information about the error condition.
Returns:
getNamespace
public String getNamespace()
Gets the namespace for this error.
Returns:
toString
public String toString()
Creates a string representation of this ErrorContext.
Overrides:
AmqpErrorContext.toString()Returns:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour