org.apache.directory.shared.ldap.codec
Class ResponseCarryingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.shared.asn1.codec.DecoderException
              extended by org.apache.directory.shared.ldap.codec.ResponseCarryingException
All Implemented Interfaces:
java.io.Serializable

public class ResponseCarryingException
extends DecoderException

Thrown when a Decoder has encountered a failure condition during a decode.

Version:
$Rev$, $Date$,
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
ResponseCarryingException(java.lang.String message)
          Creates a DecoderException
ResponseCarryingException(java.lang.String message, ResultResponse response, ResultCodeEnum code, LdapDN matchedDn, java.lang.Throwable cause)
          Creates a DecoderException
 
Method Summary
 Message getResponse()
          Get the constructed response
 void setResponse(Message response)
          Set a response if we get an exception while parsing the message
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseCarryingException

public ResponseCarryingException(java.lang.String message)
Creates a DecoderException

Parameters:
message - A message with meaning to a human

ResponseCarryingException

public ResponseCarryingException(java.lang.String message,
                                 ResultResponse response,
                                 ResultCodeEnum code,
                                 LdapDN matchedDn,
                                 java.lang.Throwable cause)
Creates a DecoderException

Parameters:
message - A message with meaning to a human
cause - The Exception which caused the error
Method Detail

setResponse

public void setResponse(Message response)
Set a response if we get an exception while parsing the message

Parameters:
response - the constructed response

getResponse

public Message getResponse()
Get the constructed response

Returns:
The constructed response


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.