polyfractal / sherlock

MIT License
119 stars 28 forks source link

Added a DocumentMissingException #52

Closed Mopster closed 11 years ago

Mopster commented 11 years ago

When trying to delete a document that is not present in the index, the process4xx() method in responses/Response throws an error "undefined index: error" when trying to retrieve the error from the responseData.

I created a DocumentMissingException which will be thrown in the process4xx() method when the responseData['found'] is false. This prevents the above error and allows us to catch the exception and handle it gracefully.

polyfractal commented 11 years ago

Great, thanks! Merging this right now.