SessionErrorContext Class
- java.
lang. Object - com.
azure. core. amqp. exception. AmqpErrorContext - com.
azure. core. amqp. exception. SessionErrorContext
- com.
- com.
public class SessionErrorContext
extends AmqpErrorContext
Context for an error that occurs in an AMQP session when an AmqpException occurs.
Constructor Summary
Constructor | Description |
---|---|
SessionErrorContext(String namespace, String entityPath) |
Creates a new instance with the |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getEntityPath()
Gets the remote path this AMQP entity was connected to when the error occurred. |
String |
toString()
Creates a string representation of this Error |
Methods inherited from AmqpErrorContext
Methods inherited from java.lang.Object
Constructor Details
SessionErrorContext
public SessionErrorContext(String namespace, String entityPath)
Creates a new instance with the namespace
and entityPath
.
Parameters:
namespace
- The service namespace of the error.
entityPath
- The remote endpoint this AMQP session is connected to when the error occurred.
Method Details
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()
Creates a string representation of this ErrorContext.
Overrides:
SessionErrorContext.toString()