...
Code Block | ||
---|---|---|
| ||
try { FileInputStream fis = new FileInputStream(System.getenv("APPDATA") + args[0]); } catch (FileNotFoundException e) { // Log the exception throw e; } |
Noncompliant Code Example (wrapping
...
and rethrowing sensitive exception)
This noncompliant code example logs the exception and wraps it in an unchecked exception before re-throwing it.
...