Class ErrorCollector.FailFastCollector

    • Constructor Detail

      • FailFastCollector

        public FailFastCollector()
    • Method Detail

      • addError

        public void addError​(VerificationError error)
        Keeps the error only when no error has been recorded yet.
        Specified by:
        addError in interface ErrorCollector
        Parameters:
        error - the error to record
      • addWarning

        public void addWarning​(VerificationError warning)
        Records a warning; warnings are never dropped and never stop verification.
        Specified by:
        addWarning in interface ErrorCollector
        Parameters:
        warning - the warning to record
      • hasErrors

        public boolean hasErrors()
        Specified by:
        hasErrors in interface ErrorCollector
        Returns:
        true when an error has been recorded
      • hasWarnings

        public boolean hasWarnings()
        Specified by:
        hasWarnings in interface ErrorCollector
        Returns:
        true when at least one warning has been recorded
      • shouldStop

        public boolean shouldStop()
        Specified by:
        shouldStop in interface ErrorCollector
        Returns:
        true once an error has been recorded
      • reset

        public void reset()
        Forgets the first error and every warning.
        Specified by:
        reset in interface ErrorCollector