org.hibernate.search.spi

## Class ErrorHandlerFactory

- java.lang.Object
- - org.hibernate.search.spi.ErrorHandlerFactory

-     public final class ErrorHandlerFactory
      extends Object

  Factory of `ErrorHandler`. Some helper methods are exposed so that some integrating frameworks can wrap the ErrorHandler with some custom decoration, while still leaving it up to the user to choose which ErrorHandler to use within the decorator.
  Since:
    5.6

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ErrorHandler` | `createErrorHandler(SearchConfiguration searchConfiguration)`
    `static ErrorHandler` | `getDefault()`

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

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

- - ### Method Detail

    - #### getDefault

          public static ErrorHandler getDefault()

      Returns:
        Default ErrorHandler in case none is explicitly configured.

    - #### createErrorHandler

          public static ErrorHandler createErrorHandler(SearchConfiguration searchConfiguration)

      Parameters:
        `searchConfiguration` - The configuration that may specify an ErrorHandler
      Returns:
        ErrorHandler specified in the `SearchConfiguration` or the default one in case not specified.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved