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

[11.x] Rename some exceptions #881

Merged
merged 1 commit into from
Feb 28, 2020
Merged

Conversation

driesvints
Copy link
Member

These changes split up the InvalidStripeCustomer exception up into two other ones: InvalidCustomer & CustomerAlreadyCreated.

InvalidCustomer because it's more confirm to already other existing exception names: InvalidPaymentMethod & InvalidInvoice.

CustomerAlreadyCreated because of the clear and straightforward exception name which can be caught.

@taylorotwell
Copy link
Member

@driesvints has a conflict.

@driesvints
Copy link
Member Author

@taylorotwell fixed.

@taylorotwell taylorotwell merged commit 3b6eaff into master Feb 28, 2020
@driesvints driesvints deleted the rename-some-exceptions branch February 28, 2020 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants