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

Added mechanism to designate arbitrary exceptions as recoverable #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Bilge
Copy link
Member

@Bilge Bilge commented Apr 23, 2018

This important feature is needed because, although we have a mechanism for marking exceptions that extend RecoverableConnectorException as recoverable at the connector level, exception may need to be treated as recoverable at the resource level too. Resource implementations may not always have the luxury of creating their own exception types when relying on third party libraries.

On second thoughts, changing the RecoverableConnectorException base class to a RecoverableException interface would probably be a better solution since it would permit implementations to write whatever code they need to trap the specific exception they want to promote to recoverable without any maintenance burden within Porter herself.

This important feature is needed because, although we have a mechanism
for marking exceptions that extend RecoverableConnectorException as
recoverable at the connector level, exception may need to be treated as
recoverable at the resource level too. Resource implementations may not
always have the luxury of creating their own exception types when
relying on third party libraries.
@codecov-io
Copy link

codecov-io commented Apr 23, 2018

Codecov Report

Merging #56 into 5.0 will increase coverage by 0.79%.
The diff coverage is 58.06%.

Impacted file tree graph

@@             Coverage Diff              @@
##                5.0      #56      +/-   ##
============================================
+ Coverage     91.68%   92.48%   +0.79%     
+ Complexity      220      209      -11     
============================================
  Files            37       32       -5     
  Lines           457      439      -18     
============================================
- Hits            419      406      -13     
+ Misses           38       33       -5
Impacted Files Coverage Δ Complexity Δ
src/ExceptionDescriptor.php 40% <40%> (ø) 10 <10> (?)
src/Connector/ImportConnector.php 93.1% <75%> (-6.9%) 27 <5> (+5)
src/Collection/CountablePorterRecords.php 100% <0%> (ø) 1% <0%> (ø) ⬇️
src/Specification/ImportSpecification.php 100% <0%> (ø) 28% <0%> (ø) ⬇️
src/Transform/FilterTransformer.php 100% <0%> (ø) 6% <0%> (-7%) ⬇️
src/Porter.php 89.24% <0%> (ø) 42% <0%> (-1%) ⬇️
src/Collection/RecordCollection.php 100% <0%> (ø) 13% <0%> (ø) ⬇️
src/Collection/AsyncPorterRecords.php
src/Collection/AsyncProviderRecords.php
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca37a22...33b0f84. Read the comment docs.

@Bilge Bilge added this to the 5.0.0 milestone Apr 23, 2018
@Bilge Bilge removed this from the 5.0.0 milestone Feb 27, 2019
@Bilge Bilge changed the base branch from 5.0 to master November 26, 2019 00:16
@Bilge Bilge force-pushed the master branch 2 times, most recently from 2308bb2 to 37b143d Compare December 1, 2019 20:42
@Bilge Bilge force-pushed the master branch 16 times, most recently from a592815 to db12909 Compare December 15, 2020 23:58
@Bilge Bilge force-pushed the master branch 26 times, most recently from 8df01f3 to 4cd4dbd Compare December 2, 2022 13:05
@Bilge Bilge force-pushed the master branch 4 times, most recently from 93ce095 to 5898b4c Compare December 8, 2022 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants