Class HighLevelException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected HighLevelException​(java.lang.String message)  
      protected HighLevelException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HighLevelException

        protected HighLevelException​(java.lang.String message)
      • HighLevelException

        protected HighLevelException​(java.lang.String message,
                                     java.lang.Throwable cause)
    • 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.