Skip to content

Conversation

@Bilge
Copy link
Member

@Bilge Bilge commented Apr 2, 2018

Since connectors now wrap their fetch code in an error trapping block (using ConnectionContext::retry), resources no longer have the option of catching low level connector exceptions themselves (they are intercepted by the fetch exception handler). However, resources need a way to determine if a recoverable exception should be promoted to fatal, or receive other special handling, so they now have the option of specifying a provider fetch exception handler, which is executed before the user-defined fetch exception handler set in the ImportSpecification.

@Bilge Bilge added this to the 4.0.0 milestone Apr 2, 2018
@Bilge Bilge changed the title Added provider fetch exception handler to ImportConnector. Added provider fetch exception handler to ImportConnector Apr 2, 2018
@Bilge Bilge merged commit c660577 into 4.0 Apr 2, 2018
@Bilge Bilge deleted the provider-fetch-exception-handler branch April 2, 2018 20:42
@codecov-io
Copy link

codecov-io commented Apr 2, 2018

Codecov Report

Merging #49 into 4.0 will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##            4.0    #49   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files        29     29           
  Lines       327    335    +8     
===================================
+ Hits        327    335    +8
Impacted Files Coverage Δ
src/Connector/ImportConnector.php 100% <100%> (ø) ⬆️
src/Connector/ConnectionContext.php 100% <100%> (ø) ⬆️

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 91ecee9...c660577. Read the comment docs.

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.

3 participants