Class ServiceBusException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.azure.servicebus.primitives.ServiceBusException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationFailedException
,CommunicationException
,MessageLockLostException
,MessageNotFoundException
,MessagingEntityAlreadyExistsException
,MessagingEntityDisabledException
,MessagingEntityNotFoundException
,OperationCancelledException
,PayloadSizeExceededException
,QuotaExceededException
,ReceiverDisconnectedException
,ServerBusyException
,SessionCannotBeLockedException
,SessionLockLostException
,TimeoutException
public class ServiceBusException extends Exception
This is the base exception that service bus will generate for all error cases.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceBusException(boolean isTransient)
ServiceBusException(boolean isTransient, String message)
ServiceBusException(boolean isTransient, String message, Throwable cause)
ServiceBusException(boolean isTransient, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.azure.servicebus.primitives.ErrorContext
getContext()
boolean
getIsTransient()
A boolean indicating if the exception is a transient error or not.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getIsTransient
public boolean getIsTransient()
A boolean indicating if the exception is a transient error or not.- Returns:
- returns true when user can retry the operation that generated the exception without additional intervention.
-
getContext
public com.microsoft.azure.servicebus.primitives.ErrorContext getContext()
-
-