public class Translator extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
activateServerTranslation(Connection babelfishConnection)
The Translator by default starts in Local mode since the translator can be used to translate connection attempt errors.
|
protected oracle.jdbc.internal.OracleConnection |
getConnectionDuringExceptionHandling() |
SQLException |
translateError(SQLException ex)
Translate the error codes.
|
public SQLException translateError(SQLException ex) throws SQLException
ex - SQLException with oracle error codes to be translatedSQLExceptionpublic void activateServerTranslation(Connection babelfishConnection) throws SQLException
babelfishConnection -SQLExceptionprotected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()