Package com.microsoft.azure.eventhubs
Class EventHubException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.azure.eventhubs.EventHubException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationFailedException
,CommunicationException
,IllegalEntityException
,OperationCancelledException
,PayloadSizeExceededException
,QuotaExceededException
,ReceiverDisconnectedException
,ServerBusyException
,TimeoutException
public class EventHubException extends Exception
This is the base exception that service bus will produce for all error cases.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventHubException(boolean isTransient, String message)
EventHubException(boolean isTransient, String message, Throwable cause)
EventHubException(boolean isTransient, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorContext
getContext()
boolean
getIsTransient()
A boolean indicating if the exception is a transient error or not.String
getMessage()
void
setContext(ErrorContext errorContext)
-
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 ErrorContext getContext()
-
setContext
public void setContext(ErrorContext errorContext)
-
-