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