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<String,Object> errorInfo)
Creates a new instance with the provided namespace.
Parameters:
Method Details
getErrorInfo
public Map<String,Object> getErrorInfo()
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: