Interface IErrorStrategy


  • public interface IErrorStrategy
    A strategy role for dealing with errors.
    • Field Detail

      • DEFAULT_ERROR_STRATEGY

        static final IErrorStrategy DEFAULT_ERROR_STRATEGY
        The default error strategy, just re-throws the exception.
    • Method Detail

      • dealWithError

        void dealWithError​(java.lang.Throwable th)
                    throws java.lang.RuntimeException,
                           java.lang.Error
        Called when an exception ex has occurred. Can, but doesn't have to, abort the operation by re-throwing the exception.
        Throws:
        java.lang.RuntimeException - if the operation should be aborted.
        java.lang.Error
      • warning

        void warning​(java.lang.String message)
        Called to issue a warning message.