Package com.puppycrawl.tools.checkstyle
Class XMLLogger.FileMessages
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.XMLLogger.FileMessages
-
- Enclosing class:
- XMLLogger
private static final class XMLLogger.FileMessages extends Object
The registered file messages.
-
-
Field Summary
Fields Modifier and Type Field Description private List<AuditEvent>
errors
The file error events.private List<Throwable>
exceptions
The file exceptions.
-
Constructor Summary
Constructors Modifier Constructor Description private
FileMessages()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addError(AuditEvent event)
Adds the given error event to the messages.void
addException(Throwable throwable)
Adds the given exception to the messages.List<AuditEvent>
getErrors()
Returns the file error events.List<Throwable>
getExceptions()
Returns the file exceptions.
-
-
-
Field Detail
-
errors
private final List<AuditEvent> errors
The file error events.
-
exceptions
private final List<Throwable> exceptions
The file exceptions.
-
-
Constructor Detail
-
FileMessages
private FileMessages()
-
-
Method Detail
-
getErrors
public List<AuditEvent> getErrors()
Returns the file error events.- Returns:
- the file error events.
-
addError
public void addError(AuditEvent event)
Adds the given error event to the messages.- Parameters:
event
- the error event.
-
getExceptions
public List<Throwable> getExceptions()
Returns the file exceptions.- Returns:
- the file exceptions.
-
addException
public void addException(Throwable throwable)
Adds the given exception to the messages.- Parameters:
throwable
- the file exception
-
-