Skip to content

feat(core/errors): add NewCancelled constructor - #321

Open
justinwon777 wants to merge 1 commit into
mainfrom
justin.won/cancelled
Open

justinwon777 wants to merge 1 commit into
mainfrom
justin.won/cancelled

Conversation

@justinwon777

@justinwon777 justinwon777 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Jobs can be cancelled downstream such as in orchestrator implementation when one get target graph job fails and the other is cancelled. In those cases, the cancelled job should carry a cancelled error, but currently they are infra. Create an exported func to allow users to classify as cancelled.

Test Plan

unit test

Issue

Callers need a way to classify an error as ErrorCancelled directly,
matching the existing NewInfra/NewUser/NewInfraRetryable constructors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@justinwon777
justinwon777 requested review from a team as code owners September 25, 2026 21:26
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.

2 participants