Package com.microsoft.azure.relay
Class RelayException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.microsoft.azure.relay.RelayException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConnectionLostException,EndpointNotFoundException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRelayException(String message, Exception innerException) Creates a new instance of the RelayException class with a specified error message and a reference to the inner exception that is the cause of this exception. -
Method Summary
Modifier and TypeMethodDescriptionbooleanA value indicating whether the exception is transient.protected voidsetTransient(boolean isTransient) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RelayException
Creates a new instance of the RelayException class with a specified error message and a reference to the inner exception that is the cause of this exception.- Parameters:
message- The message that describes the error.innerException- The exception that is the cause of the current exception.
-
-
Method Details
-
isTransient
public boolean isTransient()A value indicating whether the exception is transient. Check this property to determine if the operation should be retried.- Returns:
- True if the exception is transient; otherwise, false.
-
setTransient
protected void setTransient(boolean isTransient)
-