Package com.azure.core.amqp.exception
Class OperationCancelledException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.core.exception.AzureException
-
- com.azure.core.amqp.exception.AmqpException
-
- com.azure.core.amqp.exception.OperationCancelledException
-
- All Implemented Interfaces:
Serializable
public class OperationCancelledException extends AmqpException
This exception is thrown when the underlying AMQP layer encounters an abnormal link abort or the connection is disconnected in an unexpected fashion.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OperationCancelledException(String message, AmqpErrorContext context)Creates an instance of this exception with providedmessage.OperationCancelledException(String message, Throwable cause, AmqpErrorContext context)Creates an instance of this exception with providedmessageand underlyingcause.
-
Method Summary
-
Methods inherited from class com.azure.core.amqp.exception.AmqpException
getContext, getErrorCondition, getMessage, isTransient
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
OperationCancelledException
public OperationCancelledException(String message, AmqpErrorContext context)
Creates an instance of this exception with providedmessage.- Parameters:
message- Message associated with this exception.context- The context that caused this OperationCancelledException.
-
OperationCancelledException
public OperationCancelledException(String message, Throwable cause, AmqpErrorContext context)
Creates an instance of this exception with providedmessageand underlyingcause.- Parameters:
message- Message associated with this exception.cause- The throwable that caused this exception to be thrown.context- The context that caused this OperationCancelledException.
-
-