Skip to content

Added mechanism to designate arbitrary exceptions as recoverable - #56

Open
Bilge wants to merge 1 commit into
masterfrom
exception-descriptor
Open

Added mechanism to designate arbitrary exceptions as recoverable#56
Bilge wants to merge 1 commit into
masterfrom
exception-descriptor

Conversation

@Bilge

@BilgeBilge commented Apr 23, 2018

Copy link
Copy Markdown
Member

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.
@Bilge
Bilgeforce-pushed the exception-descriptor branch from 38afba3 to 33b0f84CompareApril 23, 2018 13:26
@codecov-io

codecov-io commented Apr 23, 2018

Copy link
Copy Markdown

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 FilesCoverage ΔComplexity Δ
src/ExceptionDescriptor.php40% <40%> (ø)10 <10> (?)
src/Connector/ImportConnector.php93.1% <75%> (-6.9%)27 <5> (+5)
src/Collection/CountablePorterRecords.php100% <0%> (ø)1% <0%> (ø)⬇️
src/Specification/ImportSpecification.php100% <0%> (ø)28% <0%> (ø)⬇️
src/Transform/FilterTransformer.php100% <0%> (ø)6% <0%> (-7%)⬇️
src/Porter.php89.24% <0%> (ø)42% <0%> (-1%)⬇️
src/Collection/RecordCollection.php100% <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.

@BilgeBilge added this to the 5.0.0 milestone Apr 23, 2018
@BilgeBilge removed this from the 5.0.0 milestone Feb 27, 2019
@Bilge
Bilgeforce-pushed the 5.0 branch 2 times, most recently from ad1512c to 56b9d03CompareOctober 31, 2019 08:48
@Bilge
Bilge changed the base branch from 5.0 to masterNovember 26, 2019 00:16
@Bilge
Bilgeforce-pushed the master branch 2 times, most recently from 2308bb2 to 37b143dCompareDecember 1, 2019 20:42
@Bilge
Bilgeforce-pushed the master branch 16 times, most recently from a592815 to db12909CompareDecember 15, 2020 23:58
@Bilge
Bilgeforce-pushed the master branch 27 times, most recently from 8df01f3 to 4cd4dbdCompareDecember 2, 2022 13:05
@Bilge
Bilgeforce-pushed the master branch 3 times, most recently from 773cde2 to 93ce095CompareDecember 8, 2022 13:58
Sign up for freeto 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

@Bilge@codecov-io