ch.systemsx.cisd.common.exceptions
Class HighLevelException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigurationFailureException, EnvironmentFailureException, InvalidAuthenticationException, InvalidExternalDataException, UserFailureException

public abstract class HighLevelException
extends java.lang.RuntimeException

An exception that is "high-level" in the sense that we have a pretty good understanding what the failure means in the context where the exception has been thrown.

See Also:
Serialized Form

Method Summary
 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.
static boolean isRetriable(java.lang.Throwable th)
          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 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
 

Method Detail

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 false, but sub classes can override the method.

Returns:
Whether retrying the operation can possibly rectify the situation or not.

isRetriable

public static boolean isRetriable(java.lang.Throwable th)
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 false, but sub classes can override the method.

Returns:
Whether retrying the operation can possibly rectify the situation or not.