Skip to content

Commit

Permalink
Update CAEngine to use DBException
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Apr 23, 2024
1 parent 18e401b commit 3f2f7b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/ca/src/main/java/org/dogtagpki/server/ca/CAEngine.java
Expand Up @@ -105,8 +105,8 @@
import com.netscape.certsrv.client.PKIClient;
import com.netscape.certsrv.connector.ConnectorConfig;
import com.netscape.certsrv.connector.ConnectorsConfig;
import com.netscape.certsrv.dbs.DBException;
import com.netscape.certsrv.dbs.certdb.CertId;
import com.netscape.certsrv.ldap.ELdapException;
import com.netscape.certsrv.logging.ILogger;
import com.netscape.certsrv.logging.event.CRLSigningInfoEvent;
import com.netscape.certsrv.logging.event.CertSigningInfoEvent;
Expand Down Expand Up @@ -1718,7 +1718,7 @@ public synchronized void addAuthorityRecord(AuthorityRecord record) throws Excep
responseControls = conn.getResponseControls();

} catch (LDAPException e) {
throw new ELdapException("Unable to add authority: " + e.getMessage(), e);
throw new DBException("Unable to add authority: " + e.getMessage(), e);

} finally {
connectionFactory.returnConn(conn);
Expand All @@ -1736,7 +1736,7 @@ public synchronized void modifyAuthorityEntry(AuthorityID aid, LDAPModificationS
responseControls = conn.getResponseControls();

} catch (LDAPException e) {
throw new ELdapException("Unable to modify authority: " + e.getMessage(), e);
throw new DBException("Unable to modify authority: " + e.getMessage(), e);

} finally {
connectionFactory.returnConn(conn);
Expand All @@ -1754,7 +1754,7 @@ public synchronized void deleteAuthorityEntry(AuthorityID aid) throws EBaseExcep
conn.delete(dn);

} catch (LDAPException e) {
throw new ELdapException("Unable to delete authority: " + e.getMessage(), e);
throw new DBException("Unable to delete authority: " + e.getMessage(), e);

} finally {
connectionFactory.returnConn(conn);
Expand Down

0 comments on commit 3f2f7b9

Please sign in to comment.