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
TheEnvironmentFailureException
is 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 EnvironmentFailureException
fromTemplate(java.lang.String messageTemplate, java.lang.Object... args)
Creates anEnvironmentFailureException
using aFormatter
.static EnvironmentFailureException
fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)
Creates anEnvironmentFailureException
using aFormatter
.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.-
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 anEnvironmentFailureException
using aFormatter
.
-
fromTemplate
public static EnvironmentFailureException fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)
Creates anEnvironmentFailureException
using 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:
isRetriable
in classHighLevelException
- Returns:
- Whether retrying the operation can possibly rectify the situation or not.
-
-