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 an AmqpException occurs.
See Also:
  • 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.
      Throws:
      IllegalArgumentException - if namespace or entityPath is null or empty.
  • 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()
      Description copied from class: AmqpErrorContext
      Creates a string representation of this ErrorContext.
      Overrides:
      toString in class AmqpErrorContext
      Returns:
      A string representation of this ErrorContext.