java.sql.DriverManager.getConnection()

Tom Tromey tromey@redhat.com
Tue Feb 11 03:31:00 GMT 2003


>>>>> "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



More information about the Java mailing list