Class EnvironmentFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.systemsx.cisd.common.exceptions.HighLevelException
ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IncompatibleAPIVersionsException,UnknownLastChangedException
The
EnvironmentFailureException is the super class of all exceptions that have their cause in the software or hardware environment of
the system failing.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentFailureException(String message) EnvironmentFailureException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvironmentFailureExceptionfromTemplate(String messageTemplate, Object... args) Creates anEnvironmentFailureExceptionusing aFormatter.static EnvironmentFailureExceptionfromTemplate(Throwable cause, String messageTemplate, Object... args) Creates anEnvironmentFailureExceptionusing aFormatter.booleanReturns the assessment of the subsystem throwing the exception whether the failure could be temporarily and thus retrying the operation (on a higher level) could possibly help to cure the problem.Methods inherited from class ch.systemsx.cisd.common.exceptions.HighLevelException
isRetriableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EnvironmentFailureException
-
EnvironmentFailureException
-
-
Method Details
-
fromTemplate
Creates anEnvironmentFailureExceptionusing aFormatter. -
fromTemplate
public static EnvironmentFailureException fromTemplate(Throwable cause, String messageTemplate, Object... args) Creates anEnvironmentFailureExceptionusing aFormatter. -
isRetriable
public boolean isRetriable()Returns the assessment of the subsystem throwing the exception whether the failure could be temporarily and thus retrying the operation (on a higher level) could possibly help to cure the problem.This class will always return
true, but sub classes can override the method.- Overrides:
isRetriablein classHighLevelException- Returns:
- Whether retrying the operation can possibly rectify the situation or not.
-