ch.systemsx.cisd.common.exceptions
Class RetriableEnvironmentFailureException

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
                      extended by ch.systemsx.cisd.common.exceptions.RetriableEnvironmentFailureException
All Implemented Interfaces:
java.io.Serializable

public class RetriableEnvironmentFailureException
extends EnvironmentFailureException

The RetriableEnvironmentFailureException is the super class of all exceptions that have their cause in the software or hardware environment of the system failing and where, at least in principle, retrying the operation could help.

If retrying doesn't help, use an EnvironmentFailureException instead.

Note that the user does not count as part of the environment in this respect.

See Also:
Serialized Form

Constructor Summary
RetriableEnvironmentFailureException(java.lang.String msg)
           
RetriableEnvironmentFailureException(java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
static RetriableEnvironmentFailureException fromTemplate(java.lang.String messageTemplate, java.lang.Object... args)
          Creates a RetriableEnvironmentFailureException using a Formatter.
static RetriableEnvironmentFailureException fromTemplate(java.lang.Throwable cause, java.lang.String messageTemplate, java.lang.Object... args)
          Creates a RetriableEnvironmentFailureException using a Formatter.
 boolean isRetriable()
          Returns true to indicate that retrying the operation might help.
 
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

RetriableEnvironmentFailureException

public RetriableEnvironmentFailureException(java.lang.String msg)

RetriableEnvironmentFailureException

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

fromTemplate

public static RetriableEnvironmentFailureException fromTemplate(java.lang.String messageTemplate,
                                                                java.lang.Object... args)
Creates a RetriableEnvironmentFailureException using a Formatter.


fromTemplate

public static RetriableEnvironmentFailureException fromTemplate(java.lang.Throwable cause,
                                                                java.lang.String messageTemplate,
                                                                java.lang.Object... args)
Creates a RetriableEnvironmentFailureException using a Formatter.


isRetriable

public boolean isRetriable()
Returns true to indicate that retrying the operation might help.

Overrides:
isRetriable in class EnvironmentFailureException
Returns:
Whether retrying the operation can possibly rectify the situation or not.
See Also:
EnvironmentFailureException.isRetriable()