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

Cleanup StripeException subclasses #2189

Merged
merged 1 commit into from
Feb 18, 2020
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

  • InvalidRequestException
    • Make final
    • Remove properties that can be obtained from StripeError object
      (i.e. param, errorCode, errorDeclineCode)
  • RateLimitException now extends StripeException

Motivation

Simplify classes

Testing

Update unit tests

Summary
- `InvalidRequestException`
    - Make `final`
    - Remove properties that can be obtained from `StripeError` object
      (i.e. `param`, `errorCode`, `errorDeclineCode`)
- `RateLimitException` now extends `StripeException`

Motivation
Simplify classes

Testing
Update unit tests
@mshafrir-stripe mshafrir-stripe merged commit 244c359 into master Feb 18, 2020
@mshafrir-stripe mshafrir-stripe deleted the cleanup-exceptions branch February 18, 2020 16:26
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.

None yet

4 participants