Class MappingAbortedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.hibernate.search.engine.mapper.mapping.building.spi.MappingAbortedException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MappingAbortedException
public MappingAbortedException()
-
-
Method Details
-
collectSilentlyAndCheck
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.
-