Skip to content

Commit

Permalink
Declare what exceptions are raised by a couple routines.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikrose committed Mar 19, 2013
1 parent 2364f39 commit e3372e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyelasticsearch/client.py
Expand Up @@ -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`:
Expand All @@ -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`:
Expand Down

0 comments on commit e3372e1

Please sign in to comment.