Change error code generation conditions to reflect all Oracle and JDBC
generated exceptions.