How to use the elasticsearch5.exceptions.ElasticsearchException function in elasticsearch5

To help you get started, we’ve selected a few elasticsearch5 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cisco / mindmeld / mindmeld / components / View on Github external
except EsConnectionError as e:
                "Unable to connect to Elasticsearch: %s details: %s", e.error,
            raise EntityResolverConnectionError(es_host=self._es_client.transport.hosts)
        except TransportError as e:
                "Unexpected error occurred when sending requests to Elasticsearch: %s "
                "Status code: %s details: %s",
            raise EntityResolverError
        except ElasticsearchException:
            raise EntityResolverError