Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


oracle.odi.core.repository
Class RepositoryAccessExceptionTranslator

java.lang.Object
  extended by oracle.odi.core.repository.RepositoryAccessExceptionTranslator


public class RepositoryAccessExceptionTranslator
extends java.lang.Object

Exception translator, which translated native exception to appropriate ODI exception

Since:
11.1.1.6.0
Version:
$Header: RepositoryAccessExceptionTranslator.java 14-mar-2011.16:51:14 aputseye Exp $

Constructor Summary
RepositoryAccessExceptionTranslator()
           

 

Method Summary
 RepositoryAccessException translateExceptionIfPossible(java.lang.RuntimeException nativeException)
          Translate the given runtime exception thrown by a persistence framework to a corresponding exception from ODI RepositoryAccessException hierarchy, if possible.
 RepositoryAccessException translateSQLException(java.sql.SQLException nativeException)
          Translate native exception in ODI Repository specific.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RepositoryAccessExceptionTranslator

public RepositoryAccessExceptionTranslator()

Method Detail

translateExceptionIfPossible

public RepositoryAccessException translateExceptionIfPossible(java.lang.RuntimeException nativeException)
Translate the given runtime exception thrown by a persistence framework to a corresponding exception from ODI RepositoryAccessException hierarchy, if possible.

Do not translate exceptions that are not understand by this translator: for example, if coming from SDK code and unrelated to persistence.

Parameters:
nativeException - exception which will be translated
Returns:
RepositoryAccessException if nativeException could be translated or null otherwise.

translateSQLException

public RepositoryAccessException translateSQLException(java.sql.SQLException nativeException)
Translate native exception in ODI Repository specific. If exception couldn't be translated, null will be returned
Parameters:
nativeException - exception which will be translated
Returns:
RepositoryAccessException or null if exception couldn't be translated.

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.7.0)

E17060-04


Copyright © 2010, 2013, Oracle and/or its affiliates. All rights reserved.