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

[Ref] Deprecate Core_Error handling #21279

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[Ref] Deprecate Core_Error handling

Before

Too much code to handle something that should not happen

After

Code reduced, deprecation notice added

Technical Details

Core processors throw PaymentProcessor exceptions which is correct - but I DID find that ca.civicrm.contributionrecur returns a CRM_Core_Error object - @adixon this PR will add a deprecation notice to that (rareish) flow but you can just throw a PaymentProcessorException instead

I didn't check all of them once I'd established that at least one processor used the old pattern since I'd originally thought we could remove rather than deprecate.

Comments

@mattwire

@civibot
Copy link

civibot bot commented Aug 27, 2021

(Standard links)

@civibot civibot bot added the master label Aug 27, 2021
@eileenmcnaughton
Copy link
Contributor Author

test this please

@seamuslee001
Copy link
Contributor

test coverage should be fine here

@seamuslee001 seamuslee001 merged commit b9b62c2 into civicrm:master Sep 2, 2021
@seamuslee001 seamuslee001 deleted the upsub branch September 2, 2021 02:31
@eileenmcnaughton
Copy link
Contributor Author

thanks @seamuslee001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants