Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing interface to ElasticsearchException #762

Merged
merged 4 commits into from
Jan 28, 2015

Conversation

im-denisenko
Copy link
Contributor

This addition provides 100% assurance in behavior of code below (for example, used in Monolog):

try {
    // do something
} catch (Elastica\Exception\ExceptionInterface $ex) {
    // ignore all possible exceptions from elastica,
    // but let all other exceptions be thrown
}

For each class in Elastica\Exception namespace:
- Check if it implements ExceptionInterface
- Check if it is inherited from \Exception
Guzzle/Thrift is optional packages, so:
- munkie/elasticsearch-thrift-php must be installed for thrift test
- guzzlehttp/guzzle must be installed for guzzle test
ruflin added a commit that referenced this pull request Jan 28, 2015
Add missing interface to ElasticsearchException
@ruflin ruflin merged commit ba38089 into ruflin:master Jan 28, 2015
@ruflin
Copy link
Owner

ruflin commented Jan 28, 2015

Merged. Of course some of the builds failed because of #759 (comment) ;-)

@ruflin
Copy link
Owner

ruflin commented Jan 28, 2015

BTW: With your recent pull requests you increased the coverage from 81% to at least 83% = Awesome

@im-denisenko
Copy link
Contributor Author

yeah, awesome :)

@im-denisenko im-denisenko deleted the fix-es-exception branch January 28, 2015 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants