Package fr.gouv.vitam.collect.internal.core.helpers

# Class AbstractErrorAccumulator<E extends Exception>

java.lang.Object
fr.gouv.vitam.collect.internal.core.helpers.AbstractErrorAccumulator<E>

All Implemented Interfaces:
  `AutoCloseable`

Direct Known Subclasses:
  `CsvErrorAccumulator`, `JsonlErrorAccumulator`

public abstract class AbstractErrorAccumulator<E extends Exception> extends Object implements AutoCloseable

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `AbstractErrorAccumulator(int maxErrorCount)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected abstract E`
  `buildException(String errorMessage)`
  `void`
  `close()`
  `void`
  `report(String errorMessage)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AbstractErrorAccumulator

    protected AbstractErrorAccumulator(int maxErrorCount)

- ## Method Details

  - ### report

    public void report(String errorMessage) throws E
    Throws:
      `E`

  - ### buildException

    protected abstract E buildException(String errorMessage)

  - ### close

    public void close() throws E
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `E`