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

Replace some calls to CRM_Core_Error::fatal with exceptions #15156

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Continues ongoing changes to replace CRM_Core_Error::fatal with

  • status bounce in forms where appropriate otherwise
  • throwing exceptions

Before

Fatal used

After

Exception used

Technical Details

@seamuslee001 @mattwire @colemanw we've replaced a lot of these with no fallout - maybe we should pick up the pace on them? We finally got to the end of $dao->free()

Comments

@civibot
Copy link

civibot bot commented Aug 29, 2019

(Standard links)

@civibot civibot bot added the master label Aug 29, 2019
@eileenmcnaughton
Copy link
Contributor Author

test this please

1 similar comment
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 ok with this?

@seamuslee001
Copy link
Contributor

@eileenmcnaughton should we be tsing these Exceptions?

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 it seems to 'depend' - in this case I left it unchanged

@eileenmcnaughton
Copy link
Contributor Author

I would note these are 'should never be hit' exceptions

@totten totten changed the title Remove some calls to CRM_Core_Error::fatal for exceptions Replace some calls to CRM_Core_Error::fatal with exceptions Sep 3, 2019
@seamuslee001
Copy link
Contributor

I've umed and arded over whether we need to ts i don't think so in this case so merging

@seamuslee001 seamuslee001 merged commit 7680fd8 into civicrm:master Sep 3, 2019
@seamuslee001 seamuslee001 deleted the dedupe5 branch September 3, 2019 22:45
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