@ThreadSafe public class CollectingTransformErrorListener extends AbstractTransformErrorListener implements IHasResourceErrorGroup
ErrorListener saves all
occurred warnings/errors/fatals in a list for later evaluation.| Modifier and Type | Field and Description |
|---|---|
protected ReadWriteLock |
m_aRWLock |
| Constructor and Description |
|---|
CollectingTransformErrorListener() |
CollectingTransformErrorListener(ErrorListener aWrappedErrorListener) |
| Modifier and Type | Method and Description |
|---|---|
EChange |
clearResourceErrors()
Clear all currently stored errors.
|
IResourceErrorGroup |
getResourceErrors() |
protected void |
internalLog(IResourceError aResError)
Handle the passed resource error.
|
String |
toString() |
error, fatalError, getWrappedErrorListener, warningprotected final ReadWriteLock m_aRWLock
public CollectingTransformErrorListener()
public CollectingTransformErrorListener(@Nullable ErrorListener aWrappedErrorListener)
protected void internalLog(@Nonnull IResourceError aResError)
AbstractTransformErrorListenerinternalLog in class AbstractTransformErrorListeneraResError - The resource error to be handled. Never null.@Nonnull @ReturnsMutableCopy public IResourceErrorGroup getResourceErrors()
getResourceErrors in interface IHasResourceErrorGroupnull resource error groups@Nonnull public EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public String toString()
toString in class AbstractTransformErrorListenerCopyright © 2006–2015 phloc systems. All rights reserved.