//throw new PSQLException("postgresql.jvm.version",ex);
thrownewSQLException("The postgresql.jar file does not contain the correct JDBC classes for this JVM. Try rebuilding.\nException thrown was "+ex.toString());
//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(Exceptionex2){
//throw new PSQLException("postgresql.unusual",ex2);
thrownewSQLException("Something unusual has occured to cause the driver to fail. Please report this exception: "+ex2.toString());
thrownewPSQLException("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
*/
publicstaticSQLExceptionnotImplemented()
{
//return new PSQLException("postgresql.unimplemented");
returnnewSQLException("This method is not yet implemented.");