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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for