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
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:
-
Constructor Summary
ConstructorsConstructorDescriptionOperationCancelledException(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, isTransientMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OperationCancelledException
Creates an instance of this exception with providedmessage.- Parameters:
message- Message associated with this exception.context- The context that caused this OperationCancelledException.
-
OperationCancelledException
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.
-