Method EnsureSuccess
EnsureSuccess(PubAckResponse)
Make sure acknowledgment was successful and throw an exception otherwise.
public static void EnsureSuccess(this PubAckResponse ack)
Parameters
ack
PubAckResponseACK response.
Exceptions
- ArgumentNullException
PubAckResponse is
NULL
.- NatsJSApiException
Server responded with an error.
- NatsJSDuplicateMessageException
A message with the same
Nats-Msg-Id
was received before.