Search in sources :

Example 1 with LdapInitializationFailedException

use of org.forgerock.openam.cts.exceptions.LdapInitializationFailedException in project OpenAM by OpenRock.

the class ReaperConnection method initConnection.

/**
     * If this is the first call, then initialise the connection.
     *
     * @throws org.forgerock.openam.sm.datalayer.api.LdapOperationFailedException If there was an error getting the connection.
     */
private void initConnection() throws LdapInitializationFailedException {
    if (connection == null) {
        try {
            connection = factory.create();
            impl.setConnection(connection);
        } catch (DataLayerException e) {
            throw new LdapInitializationFailedException(e);
        }
    }
}
Also used : DataLayerException(org.forgerock.openam.sm.datalayer.api.DataLayerException) LdapInitializationFailedException(org.forgerock.openam.cts.exceptions.LdapInitializationFailedException)

Aggregations

LdapInitializationFailedException (org.forgerock.openam.cts.exceptions.LdapInitializationFailedException)1 DataLayerException (org.forgerock.openam.sm.datalayer.api.DataLayerException)1