public class EBRetryException extends Exception
Modifier and Type | Field and Description |
---|---|
protected Object |
error
Error indicated in onFail() notify.
|
protected EBRetry |
retry
Retry mechanism throwing this exception.
|
Constructor and Description |
---|
EBRetryException() |
EBRetryException(Object error,
EBRetry retry) |
EBRetryException(String message) |
EBRetryException(String message,
Object error,
EBRetry retry) |
EBRetryException(String message,
Throwable cause) |
EBRetryException(String message,
Throwable cause,
Object error,
EBRetry retry) |
EBRetryException(Throwable cause) |
EBRetryException(Throwable cause,
Object error,
EBRetry retry) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Overridden getCause that takes error object into account also.
|
Object |
getError() |
Throwable |
getErrorCauseIfAny()
Return an trhowable instance if the error object is of Throwable type.
|
EBRetry |
getRetry() |
protected void |
updateCauseIfApplicable() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected Object error
protected EBRetry retry
public EBRetryException()
public EBRetryException(String message)
public EBRetryException(Throwable cause)
public EBRetryException(String message, Throwable cause, Object error, EBRetry retry)
public Object getError()
public EBRetry getRetry()
protected void updateCauseIfApplicable()
public Throwable getErrorCauseIfAny()
Copyright © 2016. All rights reserved.