org.hibernate.search.exception

## Interface ErrorHandler

- All Known Implementing Classes:
    LogErrorHandler

      public interface ErrorHandler

  Implementations handle errors and exceptions occurring during indexing.
  Since:
    3.2
  Author:
    Amin Mohammed-Coleman

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `LOG` Special value to be used for the `Environment.ERROR_HANDLER` configuration property in order to activate the logging of all errors/exceptions occurring.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(ErrorContext context)`
    `void` | `handleException(String errorMsg, Throwable exception)` Suited to handle a single Exception, where no ErrorContext is needed.

- - ### Field Detail

    - #### LOG

          static final String LOG

      Special value to be used for the `Environment.ERROR_HANDLER` configuration property in order to activate the logging of all errors/exceptions occurring.
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### handle

          void handle(ErrorContext context)

    - #### handleException

          void handleException(String errorMsg,
                               Throwable exception)

      Suited to handle a single Exception, where no ErrorContext is needed.
      Parameters:
        `errorMsg` - any description which could be useful to identify what was happening
        `exception` - the error to be handled
      Since:
        4.0

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