Package com.azure.core.amqp.exception
Class AmqpErrorContext
- java.lang.Object
-
- com.azure.core.amqp.exception.AmqpErrorContext
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SessionErrorContext
public class AmqpErrorContext extends Object implements Serializable
- See Also:
AmqpException,SessionErrorContext,LinkErrorContext, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmqpErrorContext(String namespace)Creates a new instance with the providednamespace.AmqpErrorContext(String namespace, Map<String,Object> errorInfo)Creates a new instance with the providednamespace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getErrorInfo()Gets the map carrying information about the error condition.StringgetNamespace()Gets the namespace for this error.StringtoString()Creates a string representation of this ErrorContext.
-
-
-
Constructor Detail
-
AmqpErrorContext
public AmqpErrorContext(String namespace)
Creates a new instance with the providednamespace.- Parameters:
namespace- The service namespace of the error.- Throws:
IllegalArgumentException- whennamespaceisnullor empty.
-
AmqpErrorContext
public AmqpErrorContext(String namespace, Map<String,Object> errorInfo)
Creates a new instance with the providednamespace.- Parameters:
namespace- The service namespace of the error.errorInfo- Additional information associated with the error.- Throws:
IllegalArgumentException- whennamespaceisnullor empty.
-
-
Method Detail
-
getNamespace
public String getNamespace()
Gets the namespace for this error.- Returns:
- The namespace for this error.
-
getErrorInfo
public Map<String,Object> getErrorInfo()
Gets the map carrying information about the error condition.- Returns:
- Map carrying additional information about the error.
-
-