Daniel Morton wrote:

Hello All...

I was just wondering, why does Derby throw an
SQLException when it shuts down, ie:

Shutdown is implemented with attributes on the url with the getConnection() method which can either
   a) return a connection
or
   b) throw an exception.

Obviously it can't return a connection in this case so it has to throw an exception.

http://java.sun.com/j2se/1.5.0/docs/api/java/sql/DriverManager.html#getConnection(java.lang.String,%20java.lang.String,%20java.lang.String)

Not intuitive I agree, but the only way I guess to fit this functionality into this API.

Kathey


Reply via email to