public abstract class AbstractCollectingPSErrorHandler extends AbstractPSErrorHandler
IPSErrorHandler that collects all error messages
in an error list.| Constructor and Description |
|---|
AbstractCollectingPSErrorHandler(com.helger.commons.error.list.ErrorList aErrorList,
IPSErrorHandler aNestedErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
clearResourceErrors()
Clear all currently stored errors.
|
com.helger.commons.error.list.IErrorList |
getAllErrors() |
com.helger.commons.error.list.IErrorList |
getAllFailures() |
com.helger.commons.error.list.IErrorList |
getErrorList() |
protected void |
handleInternally(com.helger.commons.error.IError aError)
The internal method to handle warnings and errors.
|
boolean |
isEmpty() |
String |
toString() |
getNestedErrorHandler, handleErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiterror, getErrorFieldNamepublic AbstractCollectingPSErrorHandler(@Nonnull com.helger.commons.error.list.ErrorList aErrorList, @Nullable IPSErrorHandler aNestedErrorHandler)
protected void handleInternally(@Nonnull com.helger.commons.error.IError aError)
AbstractPSErrorHandlerhandleInternally in class AbstractPSErrorHandleraError - The structured error. May not be null.@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.IErrorList getErrorList()
@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.IErrorList getAllFailures()
@Nonnull @ReturnsMutableCopy public com.helger.commons.error.list.IErrorList getAllErrors()
@Nonnull public com.helger.commons.state.EChange clearResourceErrors()
EChange.CHANGED if at least one item was cleared.public boolean isEmpty()
true if no error is contained, false if
at least one error is contained.public String toString()
toString in class AbstractPSErrorHandlerCopyright © 2014–2020 Philip Helger. All rights reserved.