Skip to content

Commit

Permalink
Updated Type::getDocument() exception handling + changes.txt ruflin#687
Browse files Browse the repository at this point in the history
  • Loading branch information
rmruano committed Nov 1, 2014
1 parent e882a64 commit 350cbf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CHANGES

2014-10-29
- Updated Type::getDocument() exception handling #687
- Updated Type::getDocument() exception handling. \Elastica\Exception\ResponseException will be thrown instead of \Elastica\Exception\NotFoundException if the ES response contains any error (i.e: Missing index) (BC break) #687

2014-10-22
- Added Util::convertDateTimeObject to Util class to easily convert \DateTime objects to required format #708
Expand Down
1 change: 1 addition & 0 deletions lib/Elastica/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ public function addObjects(array $objects)
* @param string $id Document id
* @param array $options Options for the get request.
* @throws \Elastica\Exception\NotFoundException
* @throws \Elastica\Exception\ResponseException
* @return \Elastica\Document
*/
public function getDocument($id, $options = array())
Expand Down

0 comments on commit 350cbf5

Please sign in to comment.