summaryrefslogtreecommitdiffstats
path: root/base/common/src
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-02-04 03:09:45 +0100
committerEndi S. Dewata <edewata@redhat.com>2016-02-05 16:06:19 +0100
commit4c1f6b632fe5493ba3bfe106257192d3fc088f15 (patch)
tree419e418a17be085532db6eea6d8c4b7fd09c3e0a /base/common/src
parentb1adc600c4ab63f6069d165b42880ae4f7cc40fc (diff)
downloadpki-4c1f6b632fe5493ba3bfe106257192d3fc088f15.tar.gz
pki-4c1f6b632fe5493ba3bfe106257192d3fc088f15.tar.xz
pki-4c1f6b632fe5493ba3bfe106257192d3fc088f15.zip
Fixed LDAP error handling in TokenService.
The DBSSession has been modified to attach the LDAPException to the EDBException. The TokenService will catch the EDBException and obtain the orignal LDAPException. This way the TokenService can obtain the LDAP error code and throw the proper exception the client. https://fedorahosted.org/pki/ticket/1646
Diffstat (limited to 'base/common/src')
-rw-r--r--base/common/src/com/netscape/certsrv/dbs/EDBNotAvailException.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/dbs/EDBNotAvailException.java b/base/common/src/com/netscape/certsrv/dbs/EDBNotAvailException.java
index a7df8bac7..1b1835989 100644
--- a/base/common/src/com/netscape/certsrv/dbs/EDBNotAvailException.java
+++ b/base/common/src/com/netscape/certsrv/dbs/EDBNotAvailException.java
@@ -37,4 +37,8 @@ public class EDBNotAvailException extends EDBException {
public EDBNotAvailException(String errorString) {
super(errorString);
}
+
+ public EDBNotAvailException(String errorString, Exception e) {
+ super(errorString, e);
+ }
}