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

Summary: Hint for re-throwing an exception
Product: java Reporter: Tim Lebedkov <lebedkov>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.

Example:

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