Package org.jppf.utils
Class JPPFErrorReporter
java.lang.Object
org.jppf.utils.JPPFErrorReporter
Utility class used to collect error and warning messages for various operations,
including XML parsing and validation.
- Author:
- Laurent Cohen
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJPPFErrorReporter(String name) Initialize this error reporter with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionGet a string concatenating all the error messages.Get a string concatenating all the fatal error messages.Get a string concatenating all the warning messages.protected StringconcatenateMessages(List<String> list) Concatenate all string messages in a list into a single string.
-
Field Details
-
warnings
A list of collected warnings. -
errors
A list of collected errors. -
fatalErrors
A list of fatal (non recoverable) errors. -
name
A name used to identify this error reporter.
-
-
Constructor Details
-
JPPFErrorReporter
Initialize this error reporter with the specified name.- Parameters:
name- a name used to identify this error reporter.
-
-
Method Details
-
allErrorsAsStrings
Get a string concatenating all the error messages.- Returns:
- a string.
-
allFatalErrorsAsStrings
Get a string concatenating all the fatal error messages.- Returns:
- a string.
-
allWarningsAsStrings
Get a string concatenating all the warning messages.- Returns:
- a string.
-
concatenateMessages
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.
-