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

PlaidException should be type of System.Exception #49

Open
derekantrican opened this issue Apr 29, 2021 · 2 comments
Open

PlaidException should be type of System.Exception #49

derekantrican opened this issue Apr 29, 2021 · 2 comments

Comments

@derekantrican
Copy link
Contributor

PlaidException should inherit from System.Exception so that something like throw getTransactionsResponse.Exception; is a valid use. If not, I would argue that the name "Exception" here is changed to something different (like "Error")

@danports
Copy link

danports commented Jan 3, 2022

Was trying to upgrade from an older version of the library today and ran into this. PlaidException used to inherit from System.Exception, but then that was changed in 329c640, so a throw response.Exception statement I had written earlier no longer compiles.

@Ackara Can you please help us understand why this change was made?

@viceroypenguin
Copy link
Contributor

@derekantrican @danports - I'm afraid that's my fault. I modernized the library in my fork (viceroypenguin/Going.Plaid). I removed the Exception base because the object is actually a DTO that Plaid defines, and is a common situation, not an exceptional one. I should have renamed it to PlaidError, but I did not.

I have updated my library to v4.0 to change the name to PlaidError, based on these comments.

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

No branches or pull requests

3 participants