diff options
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Driver.java')
-rw-r--r-- | src/interfaces/jdbc/postgresql/Driver.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java index b3cc57f4f2..d563a2697c 100644 --- a/src/interfaces/jdbc/postgresql/Driver.java +++ b/src/interfaces/jdbc/postgresql/Driver.java @@ -3,6 +3,13 @@ package postgresql; import java.sql.*; import java.util.*; +// You will find some mentions to a PSQLException class. This was intended +// to allow internationalisation of error messages. However, this is not +// working quite to plan, so the class exists in the source, but it's not +// quite implemented yet. Peter May 17 1999. +// +//import postgresql.util.PSQLException; + /** * The Java SQL framework allows for multiple database drivers. Each * driver should supply a class that implements the Driver interface @@ -101,8 +108,10 @@ public class Driver implements java.sql.Driver con.openConnection (host(), port(), props, database(), url, this); return (java.sql.Connection)con; } catch(ClassNotFoundException ex) { + //throw new PSQLException("postgresql.jvm.version",ex); throw new SQLException("The postgresql.jar file does not contain the correct JDBC classes for this JVM. Try rebuilding.\nException thrown was "+ex.toString()); } catch(Exception ex2) { + //throw new PSQLException("postgresql.unusual",ex2); throw new SQLException("Something unusual has occured to cause the driver to fail. Please report this exception: "+ex2.toString()); } // The old call - remove before posting @@ -346,6 +355,7 @@ public class Driver implements java.sql.Driver */ public static SQLException notImplemented() { + //return new PSQLException("postgresql.unimplemented"); return new SQLException("This method is not yet implemented."); } } |