From e3372e15f75acaf7c6b7fb3f809c8e8ab1f6239f Mon Sep 17 00:00:00 2001 From: Erik Rose Date: Tue, 19 Mar 2013 15:20:59 -0700 Subject: [PATCH] Declare what exceptions are raised by a couple routines. --- pyelasticsearch/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyelasticsearch/client.py b/pyelasticsearch/client.py index 20942e0..6ab5808 100644 --- a/pyelasticsearch/client.py +++ b/pyelasticsearch/client.py @@ -681,6 +681,9 @@ def create_index(self, index, settings=None, query_params=None): :arg index: The name of the index to create :arg settings: A dictionary of settings + If the index already exists, raise + :class:`~pyelasticsearch.exceptions.IndexAlreadyExistsError`. + See `ES's create-index API`_ for more detail. .. _`ES's create-index API`: @@ -696,6 +699,9 @@ def delete_index(self, index, query_params=None): :arg index: An index or iterable thereof to delete + If the index is not found, raise + :class:`~pyelasticsearch.exceptions.ElasticHttpNotFoundError`. + See `ES's delete-index API`_ for more detail. .. _`ES's delete-index API`: