Package com.azure.core.amqp.exception
Class SessionErrorContext
java.lang.Object
com.azure.core.amqp.exception.AmqpErrorContext
com.azure.core.amqp.exception.SessionErrorContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LinkErrorContext
Context for an error that occurs in an AMQP session when an
AmqpException occurs.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSessionErrorContext(String namespace, String entityPath) Creates a new instance with thenamespaceandentityPath. -
Method Summary
Modifier and TypeMethodDescriptionGets the remote path this AMQP entity was connected to when the error occurred.toString()Creates a string representation of this ErrorContext.Methods inherited from class com.azure.core.amqp.exception.AmqpErrorContext
getErrorInfo, getNamespace
-
Constructor Details
-
SessionErrorContext
Creates a new instance with thenamespaceandentityPath.- Parameters:
namespace- The service namespace of the error.entityPath- The remote endpoint this AMQP session is connected to when the error occurred.- Throws:
IllegalArgumentException- ifnamespaceorentityPathisnullor empty.
-
-
Method Details
-
getEntityPath
Gets the remote path this AMQP entity was connected to when the error occurred.- Returns:
- the remote path this AMQP entity was connected to when the error occurred.
-
toString
Description copied from class:AmqpErrorContextCreates a string representation of this ErrorContext.- Overrides:
toStringin classAmqpErrorContext- Returns:
- A string representation of this ErrorContext.
-