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
public class SessionErrorContext extends AmqpErrorContext
Context for an error that occurs in an AMQP session when anAmqpExceptionoccurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionErrorContext(String namespace, String entityPath)Creates a new instance with thenamespaceandentityPath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEntityPath()Gets the remote path this AMQP entity was connected to when the error occurred.StringtoString()Creates a string representation of this ErrorContext.-
Methods inherited from class com.azure.core.amqp.exception.AmqpErrorContext
getErrorInfo, getNamespace
-
-
-
-
Constructor Detail
-
SessionErrorContext
public SessionErrorContext(String namespace, String entityPath)
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 Detail
-
getEntityPath
public String 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
public String toString()
Description copied from class:AmqpErrorContextCreates a string representation of this ErrorContext.- Overrides:
toStringin classAmqpErrorContext- Returns:
- A string representation of this ErrorContext.
-
-