-
Notifications
You must be signed in to change notification settings - Fork 150
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
CWE-390: Detection of Error Condition without Action #805
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: ebakrra <[email protected]>
Removed some trailing whitespace Signed-off-by: BartyBoi1128 <[email protected]>
__ERR00-J-EX0:__ You may suppress exceptions during the release of non-reusable resources, such as closing files, network sockets, or shutting down threads, if they don't affect future program behavior. | ||
__ERR00-J-EX1:__ Allow higher-level code to catch and attempt recovery from exceptions. If recovery is not possible, log the exception, add information if needed, and rethrow it. | ||
|
||
*[example01.py](example01.py):* |
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.
on second thought its confusing to have example01 code below exceptions section. Can we move the example01 above the exaceptions sectoin and "If recovery remains impossible, wrap the checked exception in an unchecked exception and rethrow it. " from after the code to before the code as an introduction to why its there?
Signed-off-by: Helge Wehder <[email protected]>
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.
needs some updates
|[[Bloch 2008](https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+References#RuleAA.References-Bloch08)]|Item 62, "Document All Exceptions Thrown by Each Method"| | ||
|[[Bloch 2008](https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+References#RuleAA.References-Bloch08)]| Item 65, "Don't Ignore Exceptions"| | ||
|[[Goetz](https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+References#RuleAA.References-Goetz06)]|Section 5.4, "Blocking and Interruptible Methods"| |
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.
Bloch and Goetz are not referenced in this doc, contain links to a CMU ref list, have wrong formatting.
suggest to remove them.
Created README and removed old code example for CWE-390.