ch.systemsx.cisd.common.exceptions
Class EnvironmentFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ch.systemsx.cisd.common.exceptions.HighLevelException
                  extended by 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

Constructor Summary
EnvironmentFailureException(java.lang.String message)
           
EnvironmentFailureException(java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
static EnvironmentFailureException fromTemplate(java.lang.String messageTemplate, java.lang.Object... args)
          Creates an EnvironmentFailureException using a Formatter.
static EnvironmentFailureException fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)
          Creates an EnvironmentFailureException using a Formatter.
 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
 
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

EnvironmentFailureException

public EnvironmentFailureException(java.lang.String message)

EnvironmentFailureException

public EnvironmentFailureException(java.lang.String message,
                                   java.lang.Throwable cause)
Method Detail

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.