接口 SkipPolicy

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      booleanshouldSkip​(java.lang.Throwable t, int skipCount)
      Returns true or false, indicating whether or not processing should continue with the given throwable.
    • 方法详细资料

      • shouldSkip

        boolean shouldSkip​(java.lang.Throwable t,
                           int skipCount)
                    throws SkipLimitExceededException
        Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may use skipCount<0 to probe for exception types that are skippable, so implementations should be able to handle gracefully the case where skipCount<0. Implementations should avoid throwing any undeclared exceptions.
        参数:
        t - exception encountered while processing
        skipCount - currently running count of skips
        返回:
        true if processing should continue, false otherwise.
        抛出:
        SkipLimitExceededException - if a limit is breached
        java.lang.IllegalArgumentException - if the exception is null