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
-
Constructor Summary
ConstructorDescriptionAmqpErrorContext
(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
Modifier and TypeMethodDescriptionGets the map carrying information about the error condition.Gets the namespace for this error.toString()
Creates a string representation of this ErrorContext.
-
Constructor Details
-
AmqpErrorContext
Creates a new instance with the providednamespace
.- Parameters:
namespace
- The service namespace of the error.- Throws:
IllegalArgumentException
- whennamespace
isnull
or empty.
-
AmqpErrorContext
Creates a new instance with the providednamespace
.- Parameters:
namespace
- The service namespace of the error.errorInfo
- Additional information associated with the error.- Throws:
IllegalArgumentException
- whennamespace
isnull
or empty.
-
-
Method Details
-
getNamespace
Gets the namespace for this error.- Returns:
- The namespace for this error.
-
getErrorInfo
Gets the map carrying information about the error condition.- Returns:
- Map carrying additional information about the error.
-
toString
Creates a string representation of this ErrorContext.
-