NATS C Client with JetStream and Streaming support: status.h Source File

NATS C Client with JetStream and Streaming support 3.10.0 The nats.io C Client, Supported by Synadia Communications Inc.

Loading...
Searching...
No Matches
status.h
Go to the documentation of this file.
1// Copyright 2015-2022 The NATS Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14#ifndef STATUS_H_
15#define STATUS_H_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
23 typedef enum
24{
25#if defined(NATS_CONN_STATUS_NO_PREFIX)
26 // This is deprecated and applications referencing connection
27 // status should be updated to use the values prefixed with NATS_CONN_STATUS_.
28
29 DISCONNECTED = 0,
30 CONNECTING,
31 CONNECTED,
32 CLOSED,
33 RECONNECTING,
34 DRAINING_SUBS,
35 DRAINING_PUBS,
36#else
37 NATS_CONN_STATUS_DISCONNECTED = 0,
38 NATS_CONN_STATUS_CONNECTING,
39 NATS_CONN_STATUS_CONNECTED,
40 NATS_CONN_STATUS_CLOSED,
41 NATS_CONN_STATUS_RECONNECTING,
42 NATS_CONN_STATUS_DRAINING_SUBS,
43 NATS_CONN_STATUS_DRAINING_PUBS,
44#endif
45
46} natsConnStatus;
47
49 typedef enum
50{
51 NATS_OK = 0,
52
53 NATS_ERR,
54 NATS_PROTOCOL_ERROR,
56 NATS_IO_ERROR,
57 NATS_LINE_TOO_LONG,
59
60 NATS_CONNECTION_CLOSED,
62 NATS_NO_SERVER,
64 NATS_STALE_CONNECTION,
66 NATS_SECURE_CONNECTION_WANTED,
68 NATS_SECURE_CONNECTION_REQUIRED,
69 NATS_CONNECTION_DISCONNECTED,
71
72 NATS_CONNECTION_AUTH_FAILED,
73 NATS_NOT_PERMITTED,
74 NATS_NOT_FOUND,
76
77 NATS_ADDRESS_MISSING,
79
80 NATS_INVALID_SUBJECT,
81 NATS_INVALID_ARG,
84 NATS_INVALID_SUBSCRIPTION,
86 NATS_INVALID_TIMEOUT,
87
88 NATS_ILLEGAL_STATE,
91
92 NATS_SLOW_CONSUMER,
94
95 NATS_MAX_PAYLOAD,
97 NATS_MAX_DELIVERED_MSGS,
99
100 NATS_INSUFFICIENT_BUFFER,
101
102 NATS_NO_MEMORY,
104
105 NATS_SYS_ERROR,
106
107 NATS_TIMEOUT,
109
110 NATS_FAILED_TO_INITIALIZE,
111 NATS_NOT_INITIALIZED,
112
113 NATS_SSL_ERROR,
115
116 NATS_NO_SERVER_SUPPORT,
117
118 NATS_NOT_YET_CONNECTED,
121
122 NATS_DRAINING,
124
125 NATS_INVALID_QUEUE_NAME,
126
127 NATS_NO_RESPONDERS,
128
129 NATS_MISMATCH,
130
131 NATS_MISSED_HEARTBEAT,
132
133 NATS_LIMIT_REACHED,
135
136} natsStatus;
137
138 typedef enum {
139
140 JSAccountResourcesExceededErr = 10002,
141 JSBadRequestErr = 10003,
142 JSClusterIncompleteErr = 10004,
143 JSClusterNoPeersErr = 10005,
144 JSClusterNotActiveErr = 10006,
145 JSClusterNotAssignedErr = 10007,
146 JSClusterNotAvailErr = 10008,
147 JSClusterNotLeaderErr = 10009,
148 JSClusterRequiredErr = 10010,
149 JSClusterTagsErr = 10011,
150 JSConsumerCreateErr = 10012,
151 JSConsumerNameExistErr = 10013,
152 JSConsumerNotFoundErr = 10014,
153 JSSnapshotDeliverSubjectInvalidErr = 10015,
154 JSConsumerDurableNameNotInSubjectErr = 10016,
155 JSConsumerDurableNameNotMatchSubjectErr = 10017,
156 JSConsumerDurableNameNotSetErr = 10018,
157 JSConsumerEphemeralWithDurableInSubjectErr = 10019,
158 JSConsumerEphemeralWithDurableNameErr = 10020,
159 JSStreamExternalApiOverlapErr = 10021,
160 JSStreamExternalDelPrefixOverlapsErr = 10022,
161 JSInsufficientResourcesErr = 10023,
162 JSStreamInvalidExternalDeliverySubjErr = 10024,
163 JSInvalidJSONErr = 10025,
164 JSMaximumConsumersLimitErr = 10026,
165 JSMaximumStreamsLimitErr = 10027,
166 JSMemoryResourcesExceededErr = 10028,
167 JSMirrorConsumerSetupFailedErr = 10029,
168 JSMirrorMaxMessageSizeTooBigErr = 10030,
169 JSMirrorWithSourcesErr = 10031,
170 JSMirrorWithStartSeqAndTimeErr = 10032,
171 JSMirrorWithSubjectFiltersErr = 10033,
172 JSMirrorWithSubjectsErr = 10034,
173 JSNoAccountErr = 10035,
174 JSClusterUnSupportFeatureErr = 10036,
175 JSNoMessageFoundErr = 10037,
176 JSNotEmptyRequestErr = 10038,
177 JSNotEnabledForAccountErr = 10039,
178 JSClusterPeerNotMemberErr = 10040,
179 JSRaftGeneralErr = 10041,
180 JSRestoreSubscribeFailedErr = 10042,
181 JSSequenceNotFoundErr = 10043,
182 JSClusterServerNotMemberErr = 10044,
183 JSSourceConsumerSetupFailedErr = 10045,
184 JSSourceMaxMessageSizeTooBigErr = 10046,
185 JSStorageResourcesExceededErr = 10047,
186 JSStreamAssignmentErr = 10048,
187 JSStreamCreateErr = 10049,
188 JSStreamDeleteErr = 10050,
189 JSStreamGeneralError = 10051,
190 JSStreamInvalidConfig = 10052,
191 JSStreamLimitsErr = 10053,
192 JSStreamMessageExceedsMaximumErr = 10054,
193 JSStreamMirrorNotUpdatableErr = 10055,
194 JSStreamMismatchErr = 10056,
195 JSStreamMsgDeleteFailed = 10057,
196 JSStreamNameExistErr = 10058,
197 JSStreamNotFoundErr = 10059,
198 JSStreamNotMatchErr = 10060,
199 JSStreamReplicasNotUpdatableErr = 10061,
200 JSStreamRestoreErr = 10062,
201 JSStreamSequenceNotMatchErr = 10063,
202 JSStreamSnapshotErr = 10064,
203 JSStreamSubjectOverlapErr = 10065,
204 JSStreamTemplateCreateErr = 10066,
205 JSStreamTemplateDeleteErr = 10067,
206 JSStreamTemplateNotFoundErr = 10068,
207 JSStreamUpdateErr = 10069,
208 JSStreamWrongLastMsgIDErr = 10070,
209 JSStreamWrongLastSequenceErr = 10071,
210 JSTempStorageFailedErr = 10072,
211 JSTemplateNameNotMatchSubjectErr = 10073,
212 JSStreamReplicasNotSupportedErr = 10074,
213 JSPeerRemapErr = 10075,
214 JSNotEnabledErr = 10076,
215 JSStreamStoreFailedErr = 10077,
216 JSConsumerConfigRequiredErr = 10078,
217 JSConsumerDeliverToWildcardsErr = 10079,
218 JSConsumerPushMaxWaitingErr = 10080,
219 JSConsumerDeliverCycleErr = 10081,
220 JSConsumerMaxPendingAckPolicyRequiredErr = 10082,
221 JSConsumerSmallHeartbeatErr = 10083,
222 JSConsumerPullRequiresAckErr = 10084,
223 JSConsumerPullNotDurableErr = 10085,
224 JSConsumerPullWithRateLimitErr = 10086,
225 JSConsumerMaxWaitingNegativeErr = 10087,
226 JSConsumerHBRequiresPushErr = 10088,
227 JSConsumerFCRequiresPushErr = 10089,
228 JSConsumerDirectRequiresPushErr = 10090,
229 JSConsumerDirectRequiresEphemeralErr = 10091,
230 JSConsumerOnMappedErr = 10092,
231 JSConsumerFilterNotSubsetErr = 10093,
232 JSConsumerInvalidPolicyErr = 10094,
233 JSConsumerInvalidSamplingErr = 10095,
234 JSStreamInvalidErr = 10096,
235 JSConsumerWQRequiresExplicitAckErr = 10098,
236 JSConsumerWQMultipleUnfilteredErr = 10099,
237 JSConsumerWQConsumerNotUniqueErr = 10100,
238 JSConsumerWQConsumerNotDeliverAllErr = 10101,
239 JSConsumerNameTooLongErr = 10102,
240 JSConsumerBadDurableNameErr = 10103,
241 JSConsumerStoreFailedErr = 10104,
242 JSConsumerExistingActiveErr = 10105,
243 JSConsumerReplacementWithDifferentNameErr = 10106,
244 JSConsumerDescriptionTooLongErr = 10107,
245 JSConsumerWithFlowControlNeedsHeartbeatsErr = 10108,
246 JSStreamSealedErr = 10109,
247 JSStreamPurgeFailedErr = 10110,
248 JSStreamRollupFailedErr = 10111,
249 JSConsumerInvalidDeliverSubjectErr = 10112,
250 JSStreamMaxBytesRequiredErr = 10113,
251 JSConsumerMaxRequestBatchNegativeErr = 10114,
252 JSConsumerMaxRequestExpiresToSmallErr = 10115,
253 JSConsumerMaxDeliverBackoffErr = 10116,
254 JSStreamInfoMaxSubjectsErr = 10117,
255 JSStreamOfflineErr = 10118,
256 JSConsumerOfflineErr = 10119,
257 JSNoLimitsErr = 10120,
258 JSConsumerMaxPendingAckExcessErr = 10121,
259 JSStreamMaxStreamBytesExceededErr = 10122,
260 JSStreamMoveAndScaleErr = 10123,
261 JSStreamMoveInProgressErr = 10124,
262 JSConsumerMaxRequestBatchExceededErr = 10125,
263 JSConsumerReplicasExceedsStreamErr = 10126,
264 JSConsumerNameContainsPathSeparatorsErr = 10127,
265 JSStreamNameContainsPathSeparatorsErr = 10128,
266 JSStreamMoveNotInProgressErr = 10129,
267 JSStreamNameExistRestoreFailedErr = 10130,
268 JSConsumerCreateFilterSubjectMismatchErr = 10131,
269 JSConsumerCreateDurableAndNameMismatchErr = 10132,
270 JSReplicasCountCannotBeNegativeErr = 10133,
271
272} jsErrCode;
273
274#ifdef __cplusplus
275}
276#endif
277
278#endif /* STATUS_H_ */
jsErrCode
jsErrCode
Definition status.h:138
JSConsumerWQConsumerNotDeliverAllErr
@ JSConsumerWQConsumerNotDeliverAllErr
Consumer must be deliver all on workqueue stream.
Definition status.h:238
JSNoMessageFoundErr
@ JSNoMessageFoundErr
No message found.
Definition status.h:175
JSConsumerReplacementWithDifferentNameErr
@ JSConsumerReplacementWithDifferentNameErr
Consumer replacement durable config not the same.
Definition status.h:243
JSStreamInvalidConfig
@ JSStreamInvalidConfig
Stream configuration validation error.
Definition status.h:190
JSMirrorWithSubjectsErr
@ JSMirrorWithSubjectsErr
Stream mirrors can not also contain subjects.
Definition status.h:172
JSReplicasCountCannotBeNegativeErr
@ JSReplicasCountCannotBeNegativeErr
Replicas count cannot be negative.
Definition status.h:270
JSConsumerFilterNotSubsetErr
@ JSConsumerFilterNotSubsetErr
Consumer filter subject is not a valid subset of the interest subjects.
Definition status.h:231
JSConsumerEphemeralWithDurableNameErr
@ JSConsumerEphemeralWithDurableNameErr
Consumer expected to be ephemeral but a durable name was set in request.
Definition status.h:158
JSConsumerDurableNameNotMatchSubjectErr
@ JSConsumerDurableNameNotMatchSubjectErr
Consumer name in subject does not match durable name in request.
Definition status.h:155
JSConsumerReplicasExceedsStreamErr
@ JSConsumerReplicasExceedsStreamErr
Consumer config replica count exceeds parent stream.
Definition status.h:263
JSSequenceNotFoundErr
@ JSSequenceNotFoundErr
Sequence not found.
Definition status.h:181
JSStreamTemplateCreateErr
@ JSStreamTemplateCreateErr
Generic template creation failed.
Definition status.h:204
JSStreamAssignmentErr
@ JSStreamAssignmentErr
Generic stream assignment error.
Definition status.h:186
JSAccountResourcesExceededErr
@ JSAccountResourcesExceededErr
Resource limits exceeded for account.
Definition status.h:140
JSConsumerMaxWaitingNegativeErr
@ JSConsumerMaxWaitingNegativeErr
Consumer max waiting needs to be positive.
Definition status.h:225
JSConsumerStoreFailedErr
@ JSConsumerStoreFailedErr
Error creating store for consumer.
Definition status.h:241
JSConsumerPullWithRateLimitErr
@ JSConsumerPullWithRateLimitErr
Consumer in pull mode can not have rate limit set.
Definition status.h:224
JSStorageResourcesExceededErr
@ JSStorageResourcesExceededErr
Insufficient storage resources available.
Definition status.h:185
JSConsumerCreateDurableAndNameMismatchErr
@ JSConsumerCreateDurableAndNameMismatchErr
Consumer Durable and Name have to be equal if both are provided.
Definition status.h:269
JSClusterNotLeaderErr
@ JSClusterNotLeaderErr
JetStream cluster can not handle request.
Definition status.h:147
JSStreamPurgeFailedErr
@ JSStreamPurgeFailedErr
Generic stream purge failure.
Definition status.h:247
JSStreamTemplateNotFoundErr
@ JSStreamTemplateNotFoundErr
Template not found.
Definition status.h:206
JSStreamExternalApiOverlapErr
@ JSStreamExternalApiOverlapErr
Stream external api prefix must not overlap.
Definition status.h:159
JSConsumerNameTooLongErr
@ JSConsumerNameTooLongErr
Consumer name is too long.
Definition status.h:239
JSStreamSubjectOverlapErr
@ JSStreamSubjectOverlapErr
Subjects overlap with an existing stream.
Definition status.h:203
JSConsumerPullNotDurableErr
@ JSConsumerPullNotDurableErr
Consumer in pull mode requires a durable name.
Definition status.h:223
JSConsumerMaxPendingAckPolicyRequiredErr
@ JSConsumerMaxPendingAckPolicyRequiredErr
Consumer requires ack policy for max ack pending.
Definition status.h:220
JSClusterRequiredErr
@ JSClusterRequiredErr
JetStream clustering support required.
Definition status.h:148
JSConsumerDeliverToWildcardsErr
@ JSConsumerDeliverToWildcardsErr
Consumer deliver subject has wildcards.
Definition status.h:217
JSStreamUpdateErr
@ JSStreamUpdateErr
Generic stream update error.
Definition status.h:207
JSRestoreSubscribeFailedErr
@ JSRestoreSubscribeFailedErr
JetStream unable to subscribe to restore snapshot.
Definition status.h:180
JSConsumerConfigRequiredErr
@ JSConsumerConfigRequiredErr
Consumer config required.
Definition status.h:216
JSClusterNotAvailErr
@ JSClusterNotAvailErr
JetStream system temporarily unavailable.
Definition status.h:146
JSPeerRemapErr
@ JSPeerRemapErr
Peer remap failed.
Definition status.h:213
JSConsumerEphemeralWithDurableInSubjectErr
@ JSConsumerEphemeralWithDurableInSubjectErr
Consumer expected to be ephemeral but detected a durable name set in subject.
Definition status.h:157
JSStreamLimitsErr
@ JSStreamLimitsErr
General stream limits exceeded error.
Definition status.h:191
JSConsumerNameExistErr
@ JSConsumerNameExistErr
Consumer name already in use.
Definition status.h:151
JSInvalidJSONErr
@ JSInvalidJSONErr
Invalid JSON.
Definition status.h:163
JSStreamTemplateDeleteErr
@ JSStreamTemplateDeleteErr
Generic stream template deletion failed error.
Definition status.h:205
JSStreamMessageExceedsMaximumErr
@ JSStreamMessageExceedsMaximumErr
Message size exceeds maximum allowed.
Definition status.h:192
JSStreamMirrorNotUpdatableErr
@ JSStreamMirrorNotUpdatableErr
Mirror configuration can not be updated.
Definition status.h:193
JSConsumerFCRequiresPushErr
@ JSConsumerFCRequiresPushErr
Consumer flow control requires a push based consumer.
Definition status.h:227
JSStreamMoveAndScaleErr
@ JSStreamMoveAndScaleErr
Cannot move and scale a stream in a single update.
Definition status.h:260
JSStreamReplicasNotUpdatableErr
@ JSStreamReplicasNotUpdatableErr
Replicas configuration can not be updated.
Definition status.h:199
JSConsumerMaxRequestBatchExceededErr
@ JSConsumerMaxRequestBatchExceededErr
Consumer max request batch exceeds server limit.
Definition status.h:262
JSConsumerWQConsumerNotUniqueErr
@ JSConsumerWQConsumerNotUniqueErr
Filtered consumer not unique on workqueue stream.
Definition status.h:237
JSMirrorWithStartSeqAndTimeErr
@ JSMirrorWithStartSeqAndTimeErr
Stream mirrors can not have both start seq and start time configured.
Definition status.h:170
JSStreamMaxStreamBytesExceededErr
@ JSStreamMaxStreamBytesExceededErr
Stream max bytes exceeds account limit max stream bytes.
Definition status.h:259
JSConsumerDirectRequiresEphemeralErr
@ JSConsumerDirectRequiresEphemeralErr
Consumer direct requires an ephemeral consumer.
Definition status.h:229
JSStreamMaxBytesRequiredErr
@ JSStreamMaxBytesRequiredErr
Account requires a stream config to have max bytes set.
Definition status.h:250
JSStreamSequenceNotMatchErr
@ JSStreamSequenceNotMatchErr
Expected stream sequence does not match.
Definition status.h:201
JSClusterTagsErr
@ JSClusterTagsErr
Tags placement not supported for operation.
Definition status.h:149
JSStreamNotFoundErr
@ JSStreamNotFoundErr
Stream not found.
Definition status.h:197
JSStreamNameContainsPathSeparatorsErr
@ JSStreamNameContainsPathSeparatorsErr
Stream name can not contain path separators.
Definition status.h:265
JSStreamNotMatchErr
@ JSStreamNotMatchErr
Expected stream does not match.
Definition status.h:198
JSConsumerOnMappedErr
@ JSConsumerOnMappedErr
Consumer direct on a mapped consumer.
Definition status.h:230
JSConsumerHBRequiresPushErr
@ JSConsumerHBRequiresPushErr
Consumer idle heartbeat requires a push based consumer.
Definition status.h:226
JSMaximumStreamsLimitErr
@ JSMaximumStreamsLimitErr
Maximum number of streams reached.
Definition status.h:165
JSConsumerWQRequiresExplicitAckErr
@ JSConsumerWQRequiresExplicitAckErr
Workqueue stream requires explicit ack.
Definition status.h:235
JSStreamInvalidExternalDeliverySubjErr
@ JSStreamInvalidExternalDeliverySubjErr
Stream external delivery prefix must not contain wildcards.
Definition status.h:162
JSConsumerWQMultipleUnfilteredErr
@ JSConsumerWQMultipleUnfilteredErr
Multiple non-filtered consumers not allowed on workqueue stream.
Definition status.h:236
JSStreamInfoMaxSubjectsErr
@ JSStreamInfoMaxSubjectsErr
Subject details would exceed maximum allowed.
Definition status.h:254
JSStreamOfflineErr
@ JSStreamOfflineErr
Stream is offline.
Definition status.h:255
JSConsumerInvalidPolicyErr
@ JSConsumerInvalidPolicyErr
Generic delivery policy error.
Definition status.h:232
JSStreamMismatchErr
@ JSStreamMismatchErr
Stream name in subject does not match request.
Definition status.h:194
JSClusterUnSupportFeatureErr
@ JSClusterUnSupportFeatureErr
Not currently supported in clustered mode.
Definition status.h:174
JSStreamDeleteErr
@ JSStreamDeleteErr
General stream deletion error.
Definition status.h:188
JSConsumerExistingActiveErr
@ JSConsumerExistingActiveErr
Consumer already exists and is still active.
Definition status.h:242
JSStreamCreateErr
@ JSStreamCreateErr
Generic stream creation error.
Definition status.h:187
JSStreamReplicasNotSupportedErr
@ JSStreamReplicasNotSupportedErr
Replicas > 1 not supported in non-clustered mode.
Definition status.h:212
JSMirrorMaxMessageSizeTooBigErr
@ JSMirrorMaxMessageSizeTooBigErr
Stream mirror must have max message size >= source.
Definition status.h:168
JSConsumerPushMaxWaitingErr
@ JSConsumerPushMaxWaitingErr
Consumer in push mode can not set max waiting.
Definition status.h:218
JSNoAccountErr
@ JSNoAccountErr
Account not found.
Definition status.h:173
JSConsumerSmallHeartbeatErr
@ JSConsumerSmallHeartbeatErr
Consumer idle heartbeat needs to be >= 100ms.
Definition status.h:221
JSMirrorConsumerSetupFailedErr
@ JSMirrorConsumerSetupFailedErr
Generic mirror consumer setup failure.
Definition status.h:167
JSConsumerDirectRequiresPushErr
@ JSConsumerDirectRequiresPushErr
Consumer direct requires a push based consumer.
Definition status.h:228
JSStreamNameExistRestoreFailedErr
@ JSStreamNameExistRestoreFailedErr
Stream name already in use, cannot restore.
Definition status.h:267
JSClusterNotAssignedErr
@ JSClusterNotAssignedErr
JetStream cluster not assigned to this server.
Definition status.h:145
JSStreamSealedErr
@ JSStreamSealedErr
Invalid operation on sealed stream.
Definition status.h:246
JSConsumerMaxRequestExpiresToSmallErr
@ JSConsumerMaxRequestExpiresToSmallErr
Consumer max request expires needs to be > 1ms.
Definition status.h:252
JSConsumerDurableNameNotSetErr
@ JSConsumerDurableNameNotSetErr
Consumer expected to be durable but a durable name was not set.
Definition status.h:156
JSConsumerNotFoundErr
@ JSConsumerNotFoundErr
Consumer not found.
Definition status.h:152
JSRaftGeneralErr
@ JSRaftGeneralErr
General RAFT error.
Definition status.h:179
JSConsumerBadDurableNameErr
@ JSConsumerBadDurableNameErr
Durable name can not contain '.', '*', '>'.
Definition status.h:240
JSConsumerOfflineErr
@ JSConsumerOfflineErr
Consumer is offline.
Definition status.h:256
JSConsumerInvalidDeliverSubjectErr
@ JSConsumerInvalidDeliverSubjectErr
Invalid push consumer deliver subject.
Definition status.h:249
JSMaximumConsumersLimitErr
@ JSMaximumConsumersLimitErr
Maximum consumers exceeds account limit.
Definition status.h:164
JSNotEnabledForAccountErr
@ JSNotEnabledForAccountErr
JetStream not enabled for account.
Definition status.h:177
JSStreamWrongLastSequenceErr
@ JSStreamWrongLastSequenceErr
Wrong last sequence.
Definition status.h:209
JSMirrorWithSourcesErr
@ JSMirrorWithSourcesErr
Stream mirrors can not also contain other sources.
Definition status.h:169
JSConsumerNameContainsPathSeparatorsErr
@ JSConsumerNameContainsPathSeparatorsErr
Consumer name can not contain path separators.
Definition status.h:264
JSConsumerCreateFilterSubjectMismatchErr
@ JSConsumerCreateFilterSubjectMismatchErr
Consumer create request did not match filtered subject from create subject.
Definition status.h:268
JSClusterServerNotMemberErr
@ JSClusterServerNotMemberErr
Server is not a member of the cluster.
Definition status.h:182
JSConsumerInvalidSamplingErr
@ JSConsumerInvalidSamplingErr
Failed to parse consumer sampling configuration.
Definition status.h:233
JSConsumerDescriptionTooLongErr
@ JSConsumerDescriptionTooLongErr
Consumer description is too long.
Definition status.h:244
JSNotEmptyRequestErr
@ JSNotEmptyRequestErr
Expected an empty request payload.
Definition status.h:176
JSStreamMsgDeleteFailed
@ JSStreamMsgDeleteFailed
Generic message deletion failure error.
Definition status.h:195
JSStreamRestoreErr
@ JSStreamRestoreErr
Restore failed.
Definition status.h:200
JSStreamStoreFailedErr
@ JSStreamStoreFailedErr
Generic error when storing a message failed.
Definition status.h:215
JSTemplateNameNotMatchSubjectErr
@ JSTemplateNameNotMatchSubjectErr
Template name in subject does not match request.
Definition status.h:211
JSConsumerWithFlowControlNeedsHeartbeatsErr
@ JSConsumerWithFlowControlNeedsHeartbeatsErr
Consumer with flow control also needs heartbeats.
Definition status.h:245
JSStreamGeneralError
@ JSStreamGeneralError
General stream failure.
Definition status.h:189
JSConsumerMaxRequestBatchNegativeErr
@ JSConsumerMaxRequestBatchNegativeErr
Consumer max request batch needs to be > 0.
Definition status.h:251
JSConsumerPullRequiresAckErr
@ JSConsumerPullRequiresAckErr
Consumer in pull mode requires explicit ack policy.
Definition status.h:222
JSStreamMoveNotInProgressErr
@ JSStreamMoveNotInProgressErr
Stream move not in progress.
Definition status.h:266
JSStreamMoveInProgressErr
@ JSStreamMoveInProgressErr
Stream move already in progress.
Definition status.h:261
JSStreamSnapshotErr
@ JSStreamSnapshotErr
Snapshot failed.
Definition status.h:202
JSConsumerMaxPendingAckExcessErr
@ JSConsumerMaxPendingAckExcessErr
Consumer max ack pending exceeds system limit.
Definition status.h:258
JSSourceMaxMessageSizeTooBigErr
@ JSSourceMaxMessageSizeTooBigErr
Stream source must have max message size >= target.
Definition status.h:184
JSBadRequestErr
@ JSBadRequestErr
Bad request.
Definition status.h:141
JSNoLimitsErr
@ JSNoLimitsErr
No JetStream default or applicable tiered limit present.
Definition status.h:257
JSTempStorageFailedErr
@ JSTempStorageFailedErr
JetStream unable to open temp storage for restore.
Definition status.h:210
JSInsufficientResourcesErr
@ JSInsufficientResourcesErr
Insufficient resources.
Definition status.h:161
JSStreamWrongLastMsgIDErr
@ JSStreamWrongLastMsgIDErr
Wrong last msg ID.
Definition status.h:208
JSMemoryResourcesExceededErr
@ JSMemoryResourcesExceededErr
Insufficient memory resources available.
Definition status.h:166
JSSnapshotDeliverSubjectInvalidErr
@ JSSnapshotDeliverSubjectInvalidErr
Deliver subject not valid.
Definition status.h:153
JSClusterPeerNotMemberErr
@ JSClusterPeerNotMemberErr
Peer not a member.
Definition status.h:178
JSClusterNoPeersErr
@ JSClusterNoPeersErr
No suitable peers for placement.
Definition status.h:143
JSStreamExternalDelPrefixOverlapsErr
@ JSStreamExternalDelPrefixOverlapsErr
Stream external delivery prefix overlaps with stream subject.
Definition status.h:160
JSClusterIncompleteErr
@ JSClusterIncompleteErr
Incomplete results.
Definition status.h:142
JSSourceConsumerSetupFailedErr
@ JSSourceConsumerSetupFailedErr
General source consumer setup failure.
Definition status.h:183
JSStreamInvalidErr
@ JSStreamInvalidErr
Stream not valid.
Definition status.h:234
JSClusterNotActiveErr
@ JSClusterNotActiveErr
JetStream not in clustered mode.
Definition status.h:144
JSStreamNameExistErr
@ JSStreamNameExistErr
Stream name already in use.
Definition status.h:196
JSConsumerMaxDeliverBackoffErr
@ JSConsumerMaxDeliverBackoffErr
Max deliver is required to be > length of backoff values.
Definition status.h:253
JSConsumerCreateErr
@ JSConsumerCreateErr
General consumer creation failure string.
Definition status.h:150
JSConsumerDeliverCycleErr
@ JSConsumerDeliverCycleErr
Consumer deliver subject forms a cycle.
Definition status.h:219
JSMirrorWithSubjectFiltersErr
@ JSMirrorWithSubjectFiltersErr
Stream mirrors can not contain filtered subjects.
Definition status.h:171
JSNotEnabledErr
@ JSNotEnabledErr
JetStream not enabled.
Definition status.h:214
JSConsumerDurableNameNotInSubjectErr
@ JSConsumerDurableNameNotInSubjectErr
Consumer expected to be durable but no durable name set in subject.
Definition status.h:154
JSStreamRollupFailedErr
@ JSStreamRollupFailedErr
Generic stream rollup failure.
Definition status.h:248
natsStatus
natsStatus
Status returned by most of the APIs.
Definition status.h:50
NATS_DRAINING
@ NATS_DRAINING
Definition status.h:122
NATS_SECURE_CONNECTION_WANTED
@ NATS_SECURE_CONNECTION_WANTED
Definition status.h:66
NATS_PROTOCOL_ERROR
@ NATS_PROTOCOL_ERROR
Definition status.h:54
NATS_MISMATCH
@ NATS_MISMATCH
For JetStream subscriptions, it means that a consumer sequence mismatch was discovered.
Definition status.h:129
NATS_INVALID_SUBSCRIPTION
@ NATS_INVALID_SUBSCRIPTION
Definition status.h:84
NATS_INSUFFICIENT_BUFFER
@ NATS_INSUFFICIENT_BUFFER
A buffer is not large enough to accommodate the data.
Definition status.h:100
NATS_MISSED_HEARTBEAT
@ NATS_MISSED_HEARTBEAT
For JetStream subscriptions, it means that the library detected that server heartbeats have been miss...
Definition status.h:131
NATS_ERR
@ NATS_ERR
Generic error.
Definition status.h:53
NATS_IO_ERROR
@ NATS_IO_ERROR
IO Error (network communication).
Definition status.h:56
NATS_NO_SERVER
@ NATS_NO_SERVER
Definition status.h:62
NATS_CONNECTION_AUTH_FAILED
@ NATS_CONNECTION_AUTH_FAILED
The connection failed due to authentication error.
Definition status.h:72
NATS_CONNECTION_CLOSED
@ NATS_CONNECTION_CLOSED
Definition status.h:60
NATS_NOT_YET_CONNECTED
@ NATS_NOT_YET_CONNECTED
Definition status.h:118
NATS_NO_MEMORY
@ NATS_NO_MEMORY
Definition status.h:102
NATS_INVALID_ARG
@ NATS_INVALID_ARG
Definition status.h:81
NATS_INVALID_SUBJECT
@ NATS_INVALID_SUBJECT
Invalid subject, for instance NULL or empty string.
Definition status.h:80
NATS_FAILED_TO_INITIALIZE
@ NATS_FAILED_TO_INITIALIZE
The library failed to initialize.
Definition status.h:110
NATS_INVALID_TIMEOUT
@ NATS_INVALID_TIMEOUT
Timeout must be positive numbers.
Definition status.h:86
NATS_LINE_TOO_LONG
@ NATS_LINE_TOO_LONG
Definition status.h:57
NATS_SSL_ERROR
@ NATS_SSL_ERROR
Definition status.h:113
NATS_INVALID_QUEUE_NAME
@ NATS_INVALID_QUEUE_NAME
An invalid queue name was passed when creating a queue subscription.
Definition status.h:125
NATS_NO_SERVER_SUPPORT
@ NATS_NO_SERVER_SUPPORT
The server does not support this action.
Definition status.h:116
NATS_SYS_ERROR
@ NATS_SYS_ERROR
Some system function returned an error.
Definition status.h:105
NATS_MAX_DELIVERED_MSGS
@ NATS_MAX_DELIVERED_MSGS
Definition status.h:97
NATS_ILLEGAL_STATE
@ NATS_ILLEGAL_STATE
Definition status.h:88
NATS_OK
@ NATS_OK
Success.
Definition status.h:51
NATS_STALE_CONNECTION
@ NATS_STALE_CONNECTION
Definition status.h:64
NATS_NO_RESPONDERS
@ NATS_NO_RESPONDERS
No responders were running when the server received the request.
Definition status.h:127
NATS_TIMEOUT
@ NATS_TIMEOUT
Definition status.h:107
NATS_SECURE_CONNECTION_REQUIRED
@ NATS_SECURE_CONNECTION_REQUIRED
The server expects a TLS connection.
Definition status.h:68
NATS_CONNECTION_DISCONNECTED
@ NATS_CONNECTION_DISCONNECTED
Definition status.h:69
NATS_LIMIT_REACHED
@ NATS_LIMIT_REACHED
Definition status.h:133
NATS_NOT_PERMITTED
@ NATS_NOT_PERMITTED
The action is not permitted.
Definition status.h:73
NATS_NOT_FOUND
@ NATS_NOT_FOUND
Definition status.h:74
NATS_ADDRESS_MISSING
@ NATS_ADDRESS_MISSING
Definition status.h:77
NATS_NOT_INITIALIZED
@ NATS_NOT_INITIALIZED
The library is not yet initialized.
Definition status.h:111
NATS_SLOW_CONSUMER
@ NATS_SLOW_CONSUMER
Definition status.h:92
NATS_MAX_PAYLOAD
@ NATS_MAX_PAYLOAD
Definition status.h:95
natsConnStatus
natsConnStatus
The connection state.
Definition status.h:24
NATS_CONN_STATUS_DISCONNECTED
@ NATS_CONN_STATUS_DISCONNECTED
The connection has been disconnected.
Definition status.h:37
NATS_CONN_STATUS_CONNECTED
@ NATS_CONN_STATUS_CONNECTED
The connection is connected.
Definition status.h:39
NATS_CONN_STATUS_CONNECTING
@ NATS_CONN_STATUS_CONNECTING
The connection is in the process or connecting.
Definition status.h:38
NATS_CONN_STATUS_CLOSED
@ NATS_CONN_STATUS_CLOSED
The connection is closed.
Definition status.h:40
NATS_CONN_STATUS_DRAINING_SUBS
@ NATS_CONN_STATUS_DRAINING_SUBS
The connection is draining subscriptions.
Definition status.h:42
NATS_CONN_STATUS_DRAINING_PUBS
@ NATS_CONN_STATUS_DRAINING_PUBS
The connection is draining publishers.
Definition status.h:43
NATS_CONN_STATUS_RECONNECTING
@ NATS_CONN_STATUS_RECONNECTING
The connection is in the process or reconnecting.
Definition status.h:41