Class ResponseCarryingMessageException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.directory.api.util.exception.RuntimeMultiException
-
- org.apache.directory.api.ldap.model.exception.ResponseCarryingMessageException
-
- All Implemented Interfaces:
Serializable
public class ResponseCarryingMessageException extends RuntimeMultiException
This exception is thrown when a message processing error occurs.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResponseCarryingMessageException()
Constructs an Exception without a message.ResponseCarryingMessageException(String message)
Constructs an Exception with a detailed message.ResponseCarryingMessageException(String message, Throwable cause)
Constructs an Exception with a detailed message.ResponseCarryingMessageException(Throwable cause)
Constructs an Exception without a message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
getResponse()
Get the constructed responsevoid
setResponse(Message response)
Set a response if we get an exception while parsing the message-
Methods inherited from class org.apache.directory.api.util.exception.RuntimeMultiException
addThrowable, isEmpty, listNestedExceptions, printStackTrace, printStackTrace, printStackTrace, size
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ResponseCarryingMessageException
public ResponseCarryingMessageException()
Constructs an Exception without a message.
-
ResponseCarryingMessageException
public ResponseCarryingMessageException(Throwable cause)
Constructs an Exception without a message.- Parameters:
cause
- The original cause
-
ResponseCarryingMessageException
public ResponseCarryingMessageException(String message)
Constructs an Exception with a detailed message.- Parameters:
message
- The message associated with the exception.
-
ResponseCarryingMessageException
public ResponseCarryingMessageException(String message, Throwable cause)
Constructs an Exception with a detailed message.- Parameters:
message
- The message associated with the exception.cause
- The original cause
-
-
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
-
-