Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Exceptions#83

Open
asilgalis wants to merge 3 commits into
amzn:masterfrom
asilgalis:exceptions
Open

Exceptions#83
asilgalis wants to merge 3 commits into
amzn:masterfrom
asilgalis:exceptions

Conversation

@asilgalis

Copy link
Copy Markdown

Description of changes:

If something bad happens all of the time generic \Exception is throw at all times. It is quite hard to handle such problems properly. One way is to parse exception messages but one should not rely on these messages.

By throwing specific exceptions it would help developers to implement solutions that help to recover from some errors. For example with AmazonPay\IpnHandler:

  • incoming SNS messages can be rejected if signature verification fails.
  • incoming SNS message can be re-processed if connectivity with amazon fails due to timeout for signature verification.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant