Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Suppress only specific database exception #365

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

Naktibalda
Copy link
Contributor

Allow all other exceptions to fall throw.
Fixes #364
Does not conflict with #304

@Naktibalda
Copy link
Contributor Author

The only suppressed exception is InvalidArgumentException at
https://github.com/zendframework/zend-db/blob/release-2.8.2/src/Metadata/Source/Factory.php#L44

@Naktibalda
Copy link
Contributor Author

Matching exception by message is so fragile, it would be better to introduce a new specific exception in Metadata\Source\Factory.

Allow all other exceptions to fall throw.
Fixes zfcampus#364
Does not conflict with zfcampus#304
@weierophinney weierophinney added this to the 1.5.8 milestone Oct 11, 2016
@weierophinney weierophinney self-assigned this Oct 11, 2016
@weierophinney weierophinney merged commit 2c16415 into zfcampus:master Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
Suppress only specific database exception
weierophinney added a commit that referenced this pull request Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
weierophinney added a commit that referenced this pull request Oct 11, 2016
@weierophinney
Copy link
Member

Thanks, @Naktibalda

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants