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:
java.io.Serializable
- Direct Known Subclasses:
IncompatibleAPIVersionsException,UnknownLastChangedException
public class EnvironmentFailureException extends HighLevelException
TheEnvironmentFailureExceptionis the super class of all exceptions that have their cause in the software or hardware environment of the system failing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnvironmentFailureException(java.lang.String message)EnvironmentFailureException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnvironmentFailureExceptionfromTemplate(java.lang.String messageTemplate, java.lang.Object... args)Creates anEnvironmentFailureExceptionusing aFormatter.static EnvironmentFailureExceptionfromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)Creates anEnvironmentFailureExceptionusing aFormatter.booleanisRetriable()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.-
Methods inherited from class ch.systemsx.cisd.common.exceptions.HighLevelException
isRetriable
-
-
-
-
Method Detail
-
fromTemplate
public static EnvironmentFailureException fromTemplate(java.lang.String messageTemplate, java.lang.Object... args)
Creates anEnvironmentFailureExceptionusing aFormatter.
-
fromTemplate
public static EnvironmentFailureException fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.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.
-
-