You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/08/28 09:15:48 UTC
svn commit: r437582 -
/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java
Author: elecharny
Date: Mon Aug 28 00:15:47 2006
New Revision: 437582
URL: http://svn.apache.org/viewvc?rev=437582&view=rev
Log:
Changed the constructor : added three parameters, the constructor
now build the Response to avoid having it done in 78 places in the code
Modified:
directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java
Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java?rev=437582&r1=437581&r2=437582&view=diff
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java (original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/codec/ResponseCarryingException.java Mon Aug 28 00:15:47 2006
@@ -22,6 +22,9 @@
import org.apache.directory.shared.asn1.codec.DecoderException;
import org.apache.directory.shared.ldap.message.Message;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
+import org.apache.directory.shared.ldap.message.ResultResponse;
+import org.apache.directory.shared.ldap.name.LdapDN;
/**
@@ -63,9 +66,15 @@
* @param cause
* The Exception which caused the error
*/
- public ResponseCarryingException(String message, Throwable cause)
+ public ResponseCarryingException(String message, ResultResponse response, ResultCodeEnum code, LdapDN matchedDn, Throwable cause)
{
super( message, cause );
+
+ response.getLdapResult().setErrorMessage( message );
+ response.getLdapResult().setResultCode( code );
+ response.getLdapResult().setMatchedDn( matchedDn );
+
+ this.response = response;
}
/**