public class ExceptionReply extends AbstractReplyNot
ExceptionReply
instance is used by a destination for
notifying a client of an exception thrown when processing a request.Modifier and Type | Field and Description |
---|---|
private MomException |
except
The
MomException which occured when processing the request. |
private static long |
serialVersionUID |
detachable, detached, persistent
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE
Constructor and Description |
---|
ExceptionReply(AbstractRequestNot request,
MomException except)
Constructs an
ExceptionReply instance. |
ExceptionReply(MomException except)
Constructs an
ExceptionReply instance. |
Modifier and Type | Method and Description |
---|---|
MomException |
getException()
Returns the exception wrapped by the reply.
|
getCorrelationId, toString
decode, encode, getClientContext, getEncodedSize, setPersistent
done, failed, hasCallback, passCallback, setCountDownCallback
clone, getContext, getDeadNotificationAgentId, getEncodableClassId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
private static final long serialVersionUID
private MomException except
MomException
which occured when processing the request.public ExceptionReply(AbstractRequestNot request, MomException except)
ExceptionReply
instance.request
- The request that caused the exception.except
- The exception to send back to the client.public ExceptionReply(MomException except)
ExceptionReply
instance.except
- The exception to send back to the client.public MomException getException()
Copyright © 2023 ScalAgent D.T.. All rights reserved.