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