Class HighLevelException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.systemsx.cisd.common.exceptions.HighLevelException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigurationFailureException, EnvironmentFailureException, InvalidAuthenticationException, InvalidExternalDataException, UserFailureException

public abstract class HighLevelException extends 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:
  • Constructor Details

    • HighLevelException

      protected HighLevelException(String message)
    • HighLevelException

      protected HighLevelException(String message, Throwable cause)
  • Method Details

    • 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(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.