This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.sql.DriverManager.getConnection()
- From: Tom Tromey <tromey at redhat dot com>
- To: "Erik Poupaert" <erik dot poupaert at chello dot be>
- Cc: <java at gcc dot gnu dot org>
- Date: 10 Feb 2003 20:21:17 -0700
- Subject: Re: java.sql.DriverManager.getConnection()
- References: <POEIJGMGPFPGFHAGKFHAGEIHCEAA.erik.poupaert@chello.be>
- Reply-to: tromey at redhat dot com
>>>>> "Erik" == Erik Poupaert <erik.poupaert@chello.be> writes:
Erik> (gdb) step
Erik> 30 con = DriverManager.getConnection(url,
Erik> "root", "");
Erik> (gdb) step
Erik> Program exited with code 03.
Erik> (gdb) quit
Erik> Since java.sql.DriverManager.getConnection() receives the
Erik> SQLException, why doesn't it simply throw the exception into my
Erik> program? Why does it exit with code 03?
gdb doesn't know about exceptions. If you `step' over code that
throws an exception, gdb will act as if you typed `continue'.
Tom