ch.systemsx.cisd.common.exceptions
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
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:
- Serialized Form
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 |
EnvironmentFailureException
public EnvironmentFailureException(java.lang.String message)
EnvironmentFailureException
public EnvironmentFailureException(java.lang.String message,
java.lang.Throwable cause)
fromTemplate
public static EnvironmentFailureException fromTemplate(java.lang.String messageTemplate,
java.lang.Object... args)
- Creates an
EnvironmentFailureException
using a Formatter
.
fromTemplate
public static EnvironmentFailureException fromTemplate(java.lang.Throwable cause,
java.lang.String messageTemplate,
java.lang.Object... args)
- Creates an
EnvironmentFailureException
using a Formatter
.
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 class HighLevelException
- Returns:
- Whether retrying the operation can possibly rectify the situation or not.