|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.eclipse.smila.utils.MaybeRecoverableException
public class MaybeRecoverableException
Base class for exceptions that have an isRecoverable flag. If the flag is true, it means that the exception condition is probably not permanent and the caller is encouraged to retry the request, maybe after a short delay time. Examples for such reasons could be external resources that are currently not reachable, network problems and similar. Non-recoverable are invalid arguments, parse errors, external resources that really do not exists, etc.
| Constructor Summary | |
|---|---|
MaybeRecoverableException(java.lang.String message)
Create exception. recoverable flag is set to false. |
|
MaybeRecoverableException(java.lang.String message,
boolean recoverable)
Create exception, recoverable flag explicitly defined. |
|
MaybeRecoverableException(java.lang.String message,
java.lang.Throwable cause)
Create exception. recoverable flag is inherited from cause, if cause is a MaybeRecoverableException, too. |
|
MaybeRecoverableException(java.lang.String message,
java.lang.Throwable cause,
boolean recoverable)
Create exception, recoverable flag explicitly defined. |
|
MaybeRecoverableException(java.lang.Throwable cause)
Create exception. recoverable flag is inherited from cause, if cause is a MaybeRecoverableException, too. |
|
MaybeRecoverableException(java.lang.Throwable cause,
boolean recoverable)
Create exception, recoverable flag explicitly defined. |
|
| Method Summary | |
|---|---|
boolean |
isRecoverable()
|
static boolean |
isRecoverableCause(java.lang.Throwable cause)
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MaybeRecoverableException(java.lang.String message,
java.lang.Throwable cause)
MaybeRecoverableException, too.
Else the flag is set to false.
public MaybeRecoverableException(java.lang.String message)
public MaybeRecoverableException(java.lang.Throwable cause)
MaybeRecoverableException, too.
Else the flag is set to false.
public MaybeRecoverableException(java.lang.String message,
java.lang.Throwable cause,
boolean recoverable)
public MaybeRecoverableException(java.lang.String message,
boolean recoverable)
public MaybeRecoverableException(java.lang.Throwable cause,
boolean recoverable)
| Method Detail |
|---|
public static boolean isRecoverableCause(java.lang.Throwable cause)
MaybeRecoverableException, too, return its recoverable flag. else false.public boolean isRecoverable()
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||