Skip to content

docs: refresh js exception hierarchy for v2#212

Merged
yaythomas merged 1 commit into
mainfrom
docs/refresh-js-exception-hierarchy
Jun 24, 2026
Merged

docs: refresh js exception hierarchy for v2#212
yaythomas merged 1 commit into
mainfrom
docs/refresh-js-exception-hierarchy

Conversation

@yaythomas

Copy link
Copy Markdown
Contributor

Description

Refresh the TypeScript exception hierarchy diagram and example to reflect v2.0.0.

  • Re-parent CallbackTimeoutError and CallbackSubmitterError under CallbackError in the TypeScript mermaid diagram.
  • Add CallbackExternalError as a new CallbackError subclass (raised when the external entity reports a failure, for example through SendDurableExecutionCallbackFailure).
  • Add PromiseCombinatorError as a new DurableOperationError sibling for context.promise.all, allSettled, any, and race failures.
  • Update examples/typescript/sdk-reference/error-handling/exception-hierarchy.ts to import and export the new errors and reflect the graded callback hierarchy in its comment block.

Verified against packages/aws-durable-execution-sdk-js/src/errors/durable-error/durable-error.ts at origin/main. Python and Java diagrams in the same file are unaffected by these v2 changes.

zensical build --clean reports no issues. mdformat is idempotent on the changed file.

Closes #210

- Re-parent CallbackTimeoutError and CallbackSubmitterError under
  CallbackError in the TypeScript mermaid diagram.
- Add CallbackExternalError as a new CallbackError subclass.
- Add PromiseCombinatorError as a new DurableOperationError sibling
  covering context.promise.{all,allSettled,any,race} failures.
- Update the TypeScript exception-hierarchy example to import and
  export the new errors and reflect the graded callback hierarchy.

Refs #210
@yaythomas yaythomas merged commit 4f5c995 into main Jun 24, 2026
4 checks passed
@yaythomas yaythomas deleted the docs/refresh-js-exception-hierarchy branch June 24, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update JS exception hierarchy

2 participants