summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/Driver.java
diff options
context:
space:
mode:
authorPeter Mount <peter@retep.org.uk>1999-05-17 22:58:19 +0000
committerPeter Mount <peter@retep.org.uk>1999-05-17 22:58:19 +0000
commit20f0cfc3228abf0978360de30f91b2a91133f1b3 (patch)
treeaacbe0e035f116c744077b83736cd10a36ae0454 /src/interfaces/jdbc/postgresql/Driver.java
parent3f59cc08316f9aea92823a021c6232b298e00d03 (diff)
downloadpostgresql-20f0cfc3228abf0978360de30f91b2a91133f1b3.tar.gz
Fixed Internationalization of error messages.
Diffstat (limited to 'src/interfaces/jdbc/postgresql/Driver.java')
-rw-r--r--src/interfaces/jdbc/postgresql/Driver.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interfaces/jdbc/postgresql/Driver.java b/src/interfaces/jdbc/postgresql/Driver.java
index d563a2697c..c7c4473e0d 100644
--- a/src/interfaces/jdbc/postgresql/Driver.java
+++ b/src/interfaces/jdbc/postgresql/Driver.java
@@ -8,7 +8,7 @@ import java.util.*;
// 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;
+import postgresql.util.PSQLException;
/**
* The Java SQL framework allows for multiple database drivers. Each
@@ -108,11 +108,11 @@ 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());
+ 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());
+ 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
//return new Connection (host(), port(), props, database(), url, this);
@@ -355,8 +355,8 @@ 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.");
+ return new PSQLException("postgresql.unimplemented");
+ //return new SQLException("This method is not yet implemented.");
}
}