Class Errors

    • Method Detail

      • collector

        public static Errors.Collector collector()
        Create a new message collector.
        Returns:
        message collector to add messages to
      • hasFatal

        public boolean hasFatal()
        Check if a fatal message is part of these messages.
        Returns:
        true if there is at least one message with severity Severity.FATAL
      • hasWarning

        public boolean hasWarning()
        Check if a warning message is part of these messages.
        Returns:
        true if there is at least one message with severity Severity.WARN
      • hasHint

        public boolean hasHint()
        Check if a hint message is part of these messages.
        Returns:
        true if there is at least one message with severity Severity.HINT
      • log

        public boolean log​(Logger logger)
        Log supplied errors and return a status flag indicating whether the result is OK or not (will return true for valid, false if Severity.FATAL is present).
        Parameters:
        logger - Util logger to log messages into
        Returns:
        true if there are no fatal issues present in the collection, false otherwise.
      • isValid

        public boolean isValid()
        Check if these messages are a valid result.
        Returns:
        true if there is NO message in Severity.FATAL severity