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
ConstructorDescriptionSessionErrorContext
(String namespace, String entityPath) Creates a new instance with thenamespace
andentityPath
. -
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 thenamespace
andentityPath
.- Parameters:
namespace
- The service namespace of the error.entityPath
- The remote endpoint this AMQP session is connected to when the error occurred.- Throws:
IllegalArgumentException
- ifnamespace
orentityPath
isnull
or 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:AmqpErrorContext
Creates a string representation of this ErrorContext.- Overrides:
toString
in classAmqpErrorContext
- Returns:
- A string representation of this ErrorContext.
-