<commit_before>[[errorhandlers]]
== Error Handlers

NOTE: Error Handlers are a beta feature in 6.2.0. This means that the APIs and configurations detailed
here may be subject to breaking changes between releases while we improve the usability and clarity of the feature.

{ehtm} is designed to be a mostly hands off integration. Most of the features are managed through conventions and
configurations and no substantial amount of code is required to get up and running with the connector. When it comes to
exceptions, substantial effort has been put into handling the most common and expected errors from {es}.
In the case where errors are unexpected or indicative of a real problem, the connector adopts a "fail-fast" approach. We
realize that this approach is not the best for all users, especially those concerned with uptime of their jobs.

In these situations, users can handle unexpected errors by specifying the actions
to take when encountering them. To this end, we have provided a set of APIs and extensions that users can
implement in order to tailor the connector's behavior toward encountering failures in the most common locations to their
needs.
<commit_msg>Mark Error Handler API as GA in 6.4.0<commit_after>[[errorhandlers]]
== Error Handlers

added[6.4]

{ehtm} is designed to be a mostly hands off integration. Most of the features are managed through conventions and
configurations and no substantial amount of code is required to get up and running with the connector. When it comes to
exceptions, substantial effort has been put into handling the most common and expected errors from {es}.
In the case where errors are unexpected or indicative of a real problem, the connector adopts a "fail-fast" approach. We
realize that this approach is not the best for all users, especially those concerned with uptime of their jobs.

In these situations, users can handle unexpected errors by specifying the actions
to take when encountering them. To this end, we have provided a set of APIs and extensions that users can
implement in order to tailor the connector's behavior toward encountering failures in the most common locations to their
needs.

{'fraction_non_alphanumeric': 0.03145235892691952, 'fraction_numerical': 0.0037002775208140612, 'mean_word_length': 4.783422459893048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '524524', 'n_tokens_mistral': 505, 'n_tokens_neox': 474, 'n_words': 342}