feat(batch5): implement jetstream error constructors group05

This commit is contained in:
Joseph Doherty
2026-02-28 08:40:12 -05:00
parent e914b468b6
commit bc085a7da1
4 changed files with 213 additions and 0 deletions

View File

@@ -68,6 +68,24 @@ simple_methods=(
"NewJSConsumerPriorityGroupWithPolicyNoneError|ConsumerPriorityGroupWithPolicyNone"
"NewJSConsumerPriorityPolicyWithoutGroupError|ConsumerPriorityPolicyWithoutGroup"
"NewJSConsumerPullNotDurableError|ConsumerPullNotDurable"
"NewJSConsumerPullRequiresAckError|ConsumerPullRequiresAck"
"NewJSConsumerPullWithRateLimitError|ConsumerPullWithRateLimit"
"NewJSConsumerPushMaxWaitingError|ConsumerPushMaxWaiting"
"NewJSConsumerPushWithPriorityGroupError|ConsumerPushWithPriorityGroup"
"NewJSConsumerReplacementWithDifferentNameError|ConsumerReplacementWithDifferentName"
"NewJSConsumerReplayPolicyInvalidError|ConsumerReplayPolicyInvalid"
"NewJSConsumerReplicasExceedsStreamError|ConsumerReplicasExceedsStream"
"NewJSConsumerReplicasShouldMatchStreamError|ConsumerReplicasShouldMatchStream"
"NewJSConsumerSmallHeartbeatError|ConsumerSmallHeartbeat"
"NewJSConsumerWQConsumerNotDeliverAllError|ConsumerWQConsumerNotDeliverAll"
"NewJSConsumerWQConsumerNotUniqueError|ConsumerWQConsumerNotUnique"
"NewJSConsumerWQMultipleUnfilteredError|ConsumerWQMultipleUnfiltered"
"NewJSConsumerWQRequiresExplicitAckError|ConsumerWQRequiresExplicitAck"
"NewJSConsumerWithFlowControlNeedsHeartbeatsError|ConsumerWithFlowControlNeedsHeartbeats"
"NewJSInsufficientResourcesError|InsufficientResources"
"NewJSMaximumConsumersLimitError|MaximumConsumersLimit"
"NewJSMaximumStreamsLimitError|MaximumStreamsLimit"
"NewJSMemoryResourcesExceededError|MemoryResourcesExceeded"
)
templated_methods=(
@@ -85,6 +103,8 @@ templated_methods=(
"NewJSConsumerMetadataLengthError|object?|limit|ConsumerMetadataLength|{limit}"
"NewJSConsumerNameTooLongError|object?|max|ConsumerNameTooLong|{max}"
"NewJSConsumerOfflineReasonError|Exception|err|ConsumerOfflineReason|{err}"
"NewJSConsumerStoreFailedError|Exception|err|ConsumerStoreFailed|{err}"
"NewJSInvalidJSONError|Exception|err|InvalidJSON|{err}"
)
{