generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
overview
Currently exceptions from a step raise as a CallableRuntimeError.
A recent refactor in Ts introduced some different/new error types.
ChildContextError Consistency:
- Always wrap errors in ChildContextError in executeChildContext
- Preserve original error message and pass error as cause
- Handle both Error objects and non-Error values consistently
- Add test for child context error with no Error field
StepError Consistency:
- Wrap generic errors in StepError at handler level
- Preserve DurableOperationError instances and specific error types
- Add test to verify Error objects are wrapped with correct message/cause
StepInterruptedError Handling:
- Pass StepInterruptedError to retry strategy for decision making
- Wrap StepInterruptedError in StepError when retry is exhausted
- Update tests to verify proper error wrapping and retry flow
per aws/aws-durable-execution-sdk-js#212
ac
- Add ChiildContextError + implement in ChildContext handler
- Add StepError + implement in Step handler (replacing CallabeRuntimeError)
- StepInterruptedError raises as a StepError when retries exhausted
Metadata
Metadata
Assignees
Labels
No labels