public class AmqpException extends AzureException
| Constructor and Description |
|---|
AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
String message,
AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
|
AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
String message,
Throwable cause,
AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
|
AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
Throwable cause,
AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
|
AmqpException(boolean isTransient,
String message,
AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
|
AmqpException(boolean isTransient,
String message,
Throwable cause,
AmqpErrorContext errorContext)
Initializes a new instance of the AmqpException class.
|
| Modifier and Type | Method and Description |
|---|---|
AmqpErrorContext |
getContext()
Gets the context for this exception.
|
AmqpErrorCondition |
getErrorCondition()
Gets the
AmqpErrorCondition for this exception. |
String |
getMessage() |
boolean |
isTransient()
A boolean indicating if the exception is a transient error or not.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AmqpException(boolean isTransient,
String message,
AmqpErrorContext errorContext)
isTransient - A boolean indicating if the exception is a transient error or not. If true, then the
request can be retried; otherwise not.message - Text containing any supplementary details of the exception.errorContext - The context that caused this AMQP error.public AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
String message,
AmqpErrorContext errorContext)
isTransient - A boolean indicating if the exception is a transient error or not. If true, then the
request can be retried; otherwise not.errorCondition - The symbolic value indicating the error condition.message - Text containing any supplementary details not indicated by the condition field. This text can
be logged as an aid to resolving issues.errorContext - The context that caused this AMQP error.public AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
String message,
Throwable cause,
AmqpErrorContext errorContext)
isTransient - A boolean indicating if the exception is a transient error or not. If true, then the
request can be retried; otherwise not.errorCondition - The symbolic value indicating the error condition.message - Text containing any supplementary details not indicated by the condition field. This text can
be logged as an aid to resolving issues.cause - The Throwable which caused the creation of this AmqpException.errorContext - The context that caused this AMQP error.public AmqpException(boolean isTransient,
AmqpErrorCondition errorCondition,
Throwable cause,
AmqpErrorContext errorContext)
isTransient - A boolean indicating if the exception is a transient error or not. If true, then the
request can be retried; otherwise not.errorCondition - The symbolic value indicating the error condition.cause - The Throwable which caused the creation of this AmqpException.errorContext - The context that caused this AMQP error.public AmqpException(boolean isTransient,
String message,
Throwable cause,
AmqpErrorContext errorContext)
isTransient - A boolean indicating if the exception is a transient error or not. If true, then the
request can be retried; otherwise not.message - Text containing any supplementary details not indicated by the condition field. This text can
be logged as an aid to resolving issues.cause - The Throwable which caused the creation of this AmqpException.errorContext - The context that caused this AMQP error.public String getMessage()
getMessage in class Throwablepublic boolean isTransient()
public AmqpErrorCondition getErrorCondition()
AmqpErrorCondition for this exception.AmqpErrorCondition for this exception, or null if nothing was set.public AmqpErrorContext getContext()
Copyright © 2020 Microsoft Corporation. All rights reserved.