Can you provide the related code (including imports) you use here? Generally if you have imported java.sql.SQLException this should work. But it’s hard to tell for sure without looking at your code. Please read TellTheDetails.
[EDIT]Modified the incorrect package used as java.sql instead java.lang[/EDIT]
Take a look at SQLException API. Can you find a constructor for SQLException class that takes an SQLException instance as a parameter?
Anyway, why would you catch an SQLException to throw another SQLException after one line?