次の方法で共有


AmqpErrorContext Class

  • java.lang.Object
    • com.azure.core.amqp.exception.AmqpErrorContext

Implements

public class AmqpErrorContext
implements Serializable

Provides context for an AmqpException that occurs in an AmqpConnection, AmqpSession, or AmqpLink.

Constructor Summary

Constructor Description
AmqpErrorContext(String namespace)

Creates a new instance with the provided namespace.

AmqpErrorContext(String namespace, Map<String,Object> errorInfo)

Creates a new instance with the provided namespace.

Method Summary

Modifier and Type Method and Description
Map<String,Object> getErrorInfo()

Gets the map carrying information about the error condition.

String getNamespace()

Gets the namespace for this error.

String toString()

Creates a string representation of this ErrorContext.

Methods inherited from java.lang.Object

Constructor Details

AmqpErrorContext

public AmqpErrorContext(String namespace)

Creates a new instance with the provided namespace.

Parameters:

namespace - The service namespace of the error.

AmqpErrorContext

public AmqpErrorContext(String namespace, Map errorInfo)

Creates a new instance with the provided namespace.

Parameters:

namespace - The service namespace of the error.
errorInfo - Additional information associated with the error.

Method Details

getErrorInfo

public Map getErrorInfo()

Gets the map carrying information about the error condition.

Returns:

Map carrying additional information about the error.

getNamespace

public String getNamespace()

Gets the namespace for this error.

Returns:

The namespace for this error.

toString

public String toString()

Creates a string representation of this ErrorContext.

Overrides:

AmqpErrorContext.toString()

Returns:

A string representation of this ErrorContext.

Applies to