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
Update section about exceptions #5209
Conversation
|
An admin must run tests on this PR before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider splitting into two statements and avoiding passive voice and nested semantical recursions:
Plugins MUST throw only exceptions declared by the method to which the plugins are added.
Observers MUST throw only exceptions declared by the method that triggers an event.
Discussed with @melnikovi .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a minor word order swap.
Co-Authored-By: Erik Marr <45772211+erikmarr@users.noreply.github.com>
running tests |
@jeff-matthews this pull request still requires a review form an architect @maghamed . |
Thanks @dshevtsov. I forgot that all architect reviewers must approve; not just one. Waiting for your approval @maghamed. |
running tests |
running tests |
running tests |
Hi @melnikovi, thank you for your contribution! |
Purpose of this pull request
Update section about exceptions in technical guidelines.
Affected DevDocs pages
Links to Magento source code
whatsnew
Added a technical guideline (clause 5.20) about how to handle exceptions in observers and plugins.