Class JPPFErrorReporter

java.lang.Object
org.jppf.utils.JPPFErrorReporter

public class JPPFErrorReporter extends Object
Utility class used to collect error and warning messages for various operations, including XML parsing and validation.
Author:
Laurent Cohen
  • Field Details

    • warnings

      public final List<String> warnings
      A list of collected warnings.
    • errors

      public final List<String> errors
      A list of collected errors.
    • fatalErrors

      public final List<String> fatalErrors
      A list of fatal (non recoverable) errors.
    • name

      public final String name
      A name used to identify this error reporter.
  • Constructor Details

    • JPPFErrorReporter

      public JPPFErrorReporter(String name)
      Initialize this error reporter with the specified name.
      Parameters:
      name - a name used to identify this error reporter.
  • Method Details

    • allErrorsAsStrings

      public String allErrorsAsStrings()
      Get a string concatenating all the error messages.
      Returns:
      a string.
    • allFatalErrorsAsStrings

      public String allFatalErrorsAsStrings()
      Get a string concatenating all the fatal error messages.
      Returns:
      a string.
    • allWarningsAsStrings

      public String allWarningsAsStrings()
      Get a string concatenating all the warning messages.
      Returns:
      a string.
    • concatenateMessages

      protected String concatenateMessages(List<String> list)
      Concatenate all string messages in a list into a single string.
      Parameters:
      list - the list to get the messages to concatenate from.
      Returns:
      a concatenation of all messages in the list, separated by new lines.