private SQLException classNotFound ( Object interfaceNames , Set < String > packagesSearched , String dsId , Throwable cause ) { if ( cause instanceof SQLException ) return ( SQLException ) cause ; // TODO need an appropriate message when sharedLib is null and classes are loaded from the application String sharedLibId = sharedLib . id ( ) ; // Determine the list of folders that should contain the JDBC driver files. Collection < String > driverJARs = getClasspath ( sharedLib , false ) ; String message = sharedLibId . startsWith ( "com.ibm.ws.jdbc.jdbcDriver-" ) ? AdapterUtil . getNLSMessage ( "DSRA4001.no.suitable.driver.nested" , interfaceNames , dsId , driverJARs , packagesSearched ) : AdapterUtil . getNLSMessage ( "DSRA4000.no.suitable.driver" , interfaceNames , dsId , sharedLibId , driverJARs , packagesSearched ) ; return new SQLNonTransientException ( message , cause ) ; }
Returns an exception to raise when the data source class is not found .