Class CollectingSAXErrorHandler

    • Field Detail

      • m_aRWLock

        protected final com.helger.commons.concurrent.SimpleReadWriteLock m_aRWLock
      • m_aErrors

        protected final com.helger.commons.error.list.ErrorList m_aErrors
    • Constructor Detail

      • CollectingSAXErrorHandler

        public CollectingSAXErrorHandler()
      • CollectingSAXErrorHandler

        protected CollectingSAXErrorHandler​(@Nonnull
                                            Supplier<com.helger.commons.error.list.ErrorList> aErrorListProvider)
        Protected constructor to use a different ErrorList - e.g. for existing error lists.
        Parameters:
        aErrorListProvider - The error list provider. May not be null.
        Since:
        9.2.0
    • Method Detail

      • getErrorList

        @Nonnull
        @ReturnsMutableCopy
        public com.helger.commons.error.list.IErrorList getErrorList()
      • containsAtLeastOneError

        public boolean containsAtLeastOneError()
      • clearResourceErrors

        @Nonnull
        public com.helger.commons.state.EChange clearResourceErrors()
        Clear all currently stored errors.
        Returns:
        EChange.CHANGED if at least one item was cleared.