ServiceBusException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. azure. servicebus. primitives. ServiceBusException
- com.
- java.
- java.
public class ServiceBusException
extends Exception
This is the base exception that service bus will generate for all error cases.
Constructor Summary
Method Summary
Modifier and Type | Method and 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 java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ServiceBusException
public ServiceBusException(boolean isTransient)
Parameters:
ServiceBusException
public ServiceBusException(boolean isTransient, String message)
Parameters:
ServiceBusException
public ServiceBusException(boolean isTransient, String message, Throwable cause)
Parameters:
ServiceBusException
public ServiceBusException(boolean isTransient, Throwable cause)
Parameters:
Method Details
getContext
public ErrorContext getContext()
getIsTransient
public boolean getIsTransient()
A boolean indicating if the exception is a transient error or not.
Returns:
getMessage
public String getMessage()
Overrides:
ServiceBusException.getMessage()Applies to
Azure SDK for Java