AmqpException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. core. amqp. exception. AmqpException
- com.
- com.
- java.
- java.
- java.
public class AmqpException
extends AzureException
General exception for AMQP related failures.
Constructor Summary
Constructor | Description |
---|---|
AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, String message, AmqpErrorContext errorContext) |
Initializes a new instance of the Amqp |
AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, String message, Throwable cause, AmqpErrorContext errorContext) |
Initializes a new instance of the Amqp |
AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, Throwable cause, AmqpErrorContext errorContext) |
Initializes a new instance of the Amqp |
AmqpException(boolean isTransient, String message, AmqpErrorContext errorContext) |
Initializes a new instance of the Amqp |
AmqpException(boolean isTransient, String message, Throwable cause, AmqpErrorContext errorContext) |
Initializes a new instance of the Amqp |
Method Summary
Modifier and Type | Method and Description |
---|---|
Amqp |
getContext()
Gets the context for this exception. |
Amqp |
getErrorCondition()
Gets the AmqpErrorCondition for this exception. |
String | getMessage() |
boolean |
isTransient()
A boolean indicating if the exception is a transient error or not. |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
AmqpException
public AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, String message, AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
Parameters:
AmqpException
public AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, String message, Throwable cause, AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
Parameters:
AmqpException
public AmqpException(boolean isTransient, AmqpErrorCondition errorCondition, Throwable cause, AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
Parameters:
AmqpException
public AmqpException(boolean isTransient, String message, AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
Parameters:
AmqpException
public AmqpException(boolean isTransient, String message, Throwable cause, AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
Parameters:
Method Details
getContext
public AmqpErrorContext getContext()
Gets the context for this exception.
Returns:
getErrorCondition
public AmqpErrorCondition getErrorCondition()
Gets the AmqpErrorCondition for this exception.
Returns:
null
if nothing was set.getMessage
public String getMessage()
Overrides:
AmqpException.getMessage()isTransient
public boolean isTransient()
A boolean indicating if the exception is a transient error or not.
Returns:
Applies to
Azure SDK for Java