feat(batch5): implement jetstream error constructors group10

This commit is contained in:
Joseph Doherty
2026-02-28 09:00:03 -05:00
parent eee3a431dd
commit a15c8131cc
4 changed files with 204 additions and 0 deletions

View File

@@ -144,6 +144,16 @@ simple_methods=(
"NewJSStreamNameContainsPathSeparatorsError|StreamNameContainsPathSeparators"
"NewJSStreamNameExistError|StreamNameExist"
"NewJSStreamNameExistRestoreFailedError|StreamNameExistRestoreFailed"
"NewJSStreamNotFoundError|StreamNotFound"
"NewJSStreamNotMatchError|StreamNotMatch"
"NewJSStreamOfflineError|StreamOffline"
"NewJSStreamReplicasNotSupportedError|StreamReplicasNotSupported"
"NewJSStreamReplicasNotUpdatableError|StreamReplicasNotUpdatable"
"NewJSStreamSealedError|StreamSealed"
"NewJSStreamSequenceNotMatchError|StreamSequenceNotMatch"
"NewJSStreamSubjectOverlapError|StreamSubjectOverlap"
"NewJSStreamTemplateNotFoundError|StreamTemplateNotFound"
"NewJSStreamTooManyRequestsError|StreamTooManyRequests"
)
templated_methods=(
@@ -181,6 +191,15 @@ templated_methods=(
"NewJSStreamLimitsError|Exception|err|StreamLimits|{err}"
"NewJSStreamMoveInProgressError|object?|msg|StreamMoveInProgress|{msg}"
"NewJSStreamMsgDeleteFailedError|Exception|err|StreamMsgDeleteFailed|{err}"
"NewJSStreamOfflineReasonError|Exception|err|StreamOfflineReason|{err}"
"NewJSStreamPurgeFailedError|Exception|err|StreamPurgeFailed|{err}"
"NewJSStreamRollupFailedError|Exception|err|StreamRollupFailed|{err}"
"NewJSStreamSnapshotError|Exception|err|StreamSnapshot|{err}"
"NewJSStreamStoreFailedError|Exception|err|StreamStoreFailed|{err}"
"NewJSStreamTemplateCreateError|Exception|err|StreamTemplateCreate|{err}"
"NewJSStreamTemplateDeleteError|Exception|err|StreamTemplateDelete|{err}"
"NewJSStreamTransformInvalidDestinationError|Exception|err|StreamTransformInvalidDestination|{err}"
"NewJSStreamTransformInvalidSourceError|Exception|err|StreamTransformInvalidSource|{err}"
)
templated_methods_two_args=(