feat(batch5): implement jetstream error constructors group04

This commit is contained in:
Joseph Doherty
2026-02-28 08:36:38 -05:00
parent 802e3d6576
commit e914b468b6
4 changed files with 213 additions and 0 deletions

View File

@@ -53,6 +53,21 @@ simple_methods=(
"NewJSConsumerInvalidGroupNameError|ConsumerInvalidGroupName"
"NewJSConsumerInvalidPriorityGroupError|ConsumerInvalidPriorityGroup"
"NewJSConsumerMaxDeliverBackoffError|ConsumerMaxDeliverBackoff"
"NewJSConsumerMaxPendingAckPolicyRequiredError|ConsumerMaxPendingAckPolicyRequired"
"NewJSConsumerMaxRequestBatchNegativeError|ConsumerMaxRequestBatchNegative"
"NewJSConsumerMaxRequestExpiresTooSmallError|ConsumerMaxRequestExpiresTooSmall"
"NewJSConsumerMaxWaitingNegativeError|ConsumerMaxWaitingNegative"
"NewJSConsumerMultipleFiltersNotAllowedError|ConsumerMultipleFiltersNotAllowed"
"NewJSConsumerNameContainsPathSeparatorsError|ConsumerNameContainsPathSeparators"
"NewJSConsumerNameExistError|ConsumerNameExist"
"NewJSConsumerNotFoundError|ConsumerNotFound"
"NewJSConsumerOfflineError|ConsumerOffline"
"NewJSConsumerOnMappedError|ConsumerOnMapped"
"NewJSConsumerOverlappingSubjectFiltersError|ConsumerOverlappingSubjectFilters"
"NewJSConsumerPinnedTTLWithoutPriorityPolicyNoneError|ConsumerPinnedTTLWithoutPriorityPolicyNone"
"NewJSConsumerPriorityGroupWithPolicyNoneError|ConsumerPriorityGroupWithPolicyNone"
"NewJSConsumerPriorityPolicyWithoutGroupError|ConsumerPriorityPolicyWithoutGroup"
"NewJSConsumerPullNotDurableError|ConsumerPullNotDurable"
)
templated_methods=(
@@ -65,6 +80,11 @@ templated_methods=(
"NewJSConsumerInvalidPolicyError|Exception|err|ConsumerInvalidPolicy|{err}"
"NewJSConsumerInvalidResetError|Exception|err|ConsumerInvalidReset|{err}"
"NewJSConsumerInvalidSamplingError|Exception|err|ConsumerInvalidSampling|{err}"
"NewJSConsumerMaxPendingAckExcessError|object?|limit|ConsumerMaxPendingAckExcess|{limit}"
"NewJSConsumerMaxRequestBatchExceededError|object?|limit|ConsumerMaxRequestBatchExceeded|{limit}"
"NewJSConsumerMetadataLengthError|object?|limit|ConsumerMetadataLength|{limit}"
"NewJSConsumerNameTooLongError|object?|max|ConsumerNameTooLong|{max}"
"NewJSConsumerOfflineReasonError|Exception|err|ConsumerOfflineReason|{err}"
)
{