public class CollectingPSErrorHandler extends AbstractPSErrorHandler
IPSErrorHandler that collects all error
messages.| Constructor and Description |
|---|
CollectingPSErrorHandler() |
CollectingPSErrorHandler(IPSErrorHandler aNestedErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
com.phloc.commons.state.EChange |
clearResourceErrors()
Clear all currently stored errors.
|
com.phloc.commons.error.IResourceErrorGroup |
getResourceErrors() |
protected void |
handle(com.phloc.commons.io.IReadableResource aRes,
com.phloc.commons.error.EErrorLevel eErrorLevel,
IPSElement aSourceElement,
String sMessage,
Throwable t) |
String |
toString() |
error, getNestedErrorHandler, warnpublic CollectingPSErrorHandler()
public CollectingPSErrorHandler(@Nullable IPSErrorHandler aNestedErrorHandler)
protected void handle(@Nullable com.phloc.commons.io.IReadableResource aRes, @Nonnull com.phloc.commons.error.EErrorLevel eErrorLevel, @Nonnull IPSElement aSourceElement, @Nonnull String sMessage, @Nullable Throwable t)
handle in class AbstractPSErrorHandler@Nonnull @ReturnsMutableCopy public com.phloc.commons.error.IResourceErrorGroup getResourceErrors()
@Nonnull public com.phloc.commons.state.EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public String toString()
toString in class AbstractPSErrorHandlerCopyright © 2006–2014 phloc systems. All rights reserved.