This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178720 - Hint for re-throwing an exception
Summary: Hint for re-throwing an exception
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2009-12-16 02:58 UTC by Tim Lebedkov
Modified: 2013-09-02 14:24 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2009-12-16 02:58:25 UTC
If a statement throws an exception that is not handled the editor shows a hint
"surround a statement with try/catch", which just logs the error. It is often necessary to re-throw an exception wrapped in another one. The editor could show a hint allowing to re-throw an exception.


public void a(java.sql.Result rs) throws IOException {
    // the next line could throw an java.sql.SQLException; // show a hint here "re-throw as IOException"