Skip to content

Commit 350cbf5

Browse files
committed
Updated Type::getDocument() exception handling + changes.txt ruflin#687
1 parent e882a64 commit 350cbf5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CHANGES
22

33
2014-10-29
4-
- Updated Type::getDocument() exception handling #687
4+
- 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
55

66
2014-10-22
77
- Added Util::convertDateTimeObject to Util class to easily convert \DateTime objects to required format #708

lib/Elastica/Type.php

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public function addObjects(array $objects)
220220
* @param string $id Document id
221221
* @param array $options Options for the get request.
222222
* @throws \Elastica\Exception\NotFoundException
223+
* @throws \Elastica\Exception\ResponseException
223224
* @return \Elastica\Document
224225
*/
225226
public function getDocument($id, $options = array())

0 commit comments

Comments
 (0)