Class MappingAbortedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hibernate.search.engine.mapper.mapping.building.spi.MappingAbortedException
All Implemented Interfaces:
Serializable

public class MappingAbortedException extends Exception
An exception thrown by Mapper.prepareBuild() when detecting that failures were collected and deciding to abort early to avoid a snowball effect creating too many failures, which would make the failure report unclear.
See Also:
  • Constructor Details

    • MappingAbortedException

      public MappingAbortedException()
  • Method Details

    • collectSilentlyAndCheck

      public void collectSilentlyAndCheck(ContextualFailureCollector failureCollector)
      Collects the cause/suppressed of this exception, if any, in the failure collector, and throws an exception if there is nothing to explain the abortion (neither in the failure collector or in this exceptions' cause/suppressed).
      Parameters:
      failureCollector - A failure collector for the mapping that was just aborted.