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

CWE-390: Detection of Error Condition without Action #805

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BartyBoi1128
Copy link
Contributor

@BartyBoi1128 BartyBoi1128 commented Feb 27, 2025

Created README and removed old code example for CWE-390.

BartyBoi1128 and others added 2 commits February 27, 2025 11:23
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):*
Copy link
Contributor

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?

Copy link
Contributor

@myteron myteron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs some updates

Comment on lines +147 to +149
|[[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"|
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants