public class HandlerException
extends java.lang.RuntimeException
| Modifier and Type | Class and Description |
|---|---|
static class |
HandlerException.ErrorType
Error type that can occur on a handler exception.
|
static class |
HandlerException.RetryBehavior
RetryBehavior allows handlers to explicitly set the retry behavior of a
HandlerException. |
| Constructor and Description |
|---|
HandlerException(HandlerException.ErrorType errorType,
java.lang.String message) |
HandlerException(HandlerException.ErrorType errorType,
java.lang.String message,
HandlerException.RetryBehavior retryBehavior) |
HandlerException(HandlerException.ErrorType errorType,
@Nullable java.lang.Throwable cause) |
HandlerException(HandlerException.ErrorType errorType,
@Nullable java.lang.Throwable cause,
HandlerException.RetryBehavior retryBehavior) |
HandlerException(java.lang.String rawErrorType,
@Nullable java.lang.Throwable cause,
HandlerException.RetryBehavior retryBehavior) |
| Modifier and Type | Method and Description |
|---|---|
HandlerException.ErrorType |
getErrorType()
Error type for this exception.
|
java.lang.String |
getRawErrorType()
Get the raw error type.
|
HandlerException.RetryBehavior |
getRetryBehavior()
Retry behavior for this exception.
|
boolean |
isRetryable() |
public HandlerException(HandlerException.ErrorType errorType, java.lang.String message)
public HandlerException(HandlerException.ErrorType errorType, java.lang.String message, HandlerException.RetryBehavior retryBehavior)
public HandlerException(HandlerException.ErrorType errorType, @Nullable java.lang.Throwable cause)
public HandlerException(HandlerException.ErrorType errorType, @Nullable java.lang.Throwable cause, HandlerException.RetryBehavior retryBehavior)
public HandlerException(java.lang.String rawErrorType,
@Nullable java.lang.Throwable cause,
HandlerException.RetryBehavior retryBehavior)
public java.lang.String getRawErrorType()
HandlerException.ErrorType.UNKNOWN, it will return the
string representation of the error type.public HandlerException.ErrorType getErrorType()
HandlerException.ErrorType.UNKNOWN.public HandlerException.RetryBehavior getRetryBehavior()
public boolean isRetryable()