public class Translator extends Object
Modifier and Type | Method | 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 translatedSQLException
public void activateServerTranslation(Connection babelfishConnection) throws SQLException
babelfishConnection
-SQLException
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()