|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.systemsx.cisd.common.exceptions.HighLevelException
ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
ch.systemsx.cisd.common.exceptions.RetriableEnvironmentFailureException
public class RetriableEnvironmentFailureException
The RetriableEnvironmentFailureException
is the super class of all exceptions that
have their cause in the software or hardware environment of the system failing and where, at
least in principle, retrying the operation could help.
If retrying doesn't help, use an EnvironmentFailureException
instead.
Note that the user does not count as part of the environment in this respect.
Constructor Summary | |
---|---|
RetriableEnvironmentFailureException(java.lang.String msg)
|
|
RetriableEnvironmentFailureException(java.lang.String message,
java.lang.Throwable cause)
|
Method Summary | |
---|---|
static RetriableEnvironmentFailureException |
fromTemplate(java.lang.String messageTemplate,
java.lang.Object... args)
Creates a RetriableEnvironmentFailureException using a Formatter . |
static RetriableEnvironmentFailureException |
fromTemplate(java.lang.Throwable cause,
java.lang.String messageTemplate,
java.lang.Object... args)
Creates a RetriableEnvironmentFailureException using a Formatter . |
boolean |
isRetriable()
Returns true to indicate that retrying the operation might help. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RetriableEnvironmentFailureException(java.lang.String msg)
public RetriableEnvironmentFailureException(java.lang.String message, java.lang.Throwable cause)
Method Detail |
---|
public static RetriableEnvironmentFailureException fromTemplate(java.lang.String messageTemplate, java.lang.Object... args)
RetriableEnvironmentFailureException
using a Formatter
.
public static RetriableEnvironmentFailureException fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)
RetriableEnvironmentFailureException
using a Formatter
.
public boolean isRetriable()
true
to indicate that retrying the operation might help.
isRetriable
in class EnvironmentFailureException
EnvironmentFailureException.isRetriable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |